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 | 361c004b88e3ad3fb94e16fb9624a5b89ae5cc09 (patch) | |
| tree | e941a41d8e8d2a60975701617ac715fc6c4d7d83 /llvm/lib/Target | |
| parent | a38ebcc476a1293f328adfa7a2ae944143c7a8d7 (diff) | |
| download | bcm5719-llvm-361c004b88e3ad3fb94e16fb9624a5b89ae5cc09.tar.gz bcm5719-llvm-361c004b88e3ad3fb94e16fb9624a5b89ae5cc09.zip | |
Make this assertion more self-explanatory.
llvm-svn: 10879
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/TargetInstrInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp index 0f9015f8a60..a3131bb319f 100644 --- a/llvm/lib/Target/TargetInstrInfo.cpp +++ b/llvm/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 } |

