From 13203c041671d05089099c7e20551098b0dfe887 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Thu, 15 Jan 2004 18:15:58 +0000 Subject: [PATCH] Make this assertion more self-explanatory. llvm-svn: 10879 --- lib/Target/TargetInstrInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp index 0f9015f8a60..a3131bb319f 100644 --- a/lib/Target/TargetInstrInfo.cpp +++ b/lib/Target/TargetInstrInfo.cpp @@ -23,13 +23,13 @@ namespace llvm { // const TargetInstrDescriptor* TargetInstrDescriptors = 0; - TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc, unsigned DescSize, unsigned NumRealOpCodes) : desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) { // FIXME: TargetInstrDescriptors should not be global - assert(TargetInstrDescriptors == NULL && desc != NULL); + assert(TargetInstrDescriptors == NULL && desc != NULL + && "TargetMachine data structure corrupt; maybe you tried to create another TargetMachine? (only one may exist in a program)"); TargetInstrDescriptors = desc; // initialize global variable }