diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-15 18:15:58 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-01-15 18:15:58 +0000 |
commit | 0f5918a0b6dba521be3c254718d1f41fad6b8d30 (patch) | |
tree | 2cece60f2da1b9207cd3a3cc6dac6df5de1c7278 /lib/Target/TargetInstrInfo.cpp | |
parent | 23632f108fd39fff77a7f141a08f4dcdd8198cea (diff) |
Make this assertion more self-explanatory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetInstrInfo.cpp')
-rw-r--r-- | lib/Target/TargetInstrInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp index 0f9015f8a6..a3131bb319 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 } |