Fixes to previous checkin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-10-28 01:27:30 +00:00
parent 51a8d85281
commit a4f808b54e
2 changed files with 6 additions and 4 deletions

View File

@ -35,10 +35,11 @@ public:
static MachineCodeForInstruction &get(const Instruction *I) {
assert(I != NULL);
return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID);
return *(MachineCodeForInstruction*)
((Annotable*)I)->getOrCreateAnnotation(MCFI_AID);
}
static void destroy(const Instruction *I) {
I->deleteAnnotation(MCFI_AID);
((Annotable*)I)->deleteAnnotation(MCFI_AID);
}
// Access to underlying machine instructions...

View File

@ -35,10 +35,11 @@ public:
static MachineCodeForInstruction &get(const Instruction *I) {
assert(I != NULL);
return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID);
return *(MachineCodeForInstruction*)
((Annotable*)I)->getOrCreateAnnotation(MCFI_AID);
}
static void destroy(const Instruction *I) {
I->deleteAnnotation(MCFI_AID);
((Annotable*)I)->deleteAnnotation(MCFI_AID);
}
// Access to underlying machine instructions...