diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-10-28 01:27:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-10-28 01:27:30 +0000 |
| commit | 3ade8929ef71ccf28a39906b4a192e8818936926 (patch) | |
| tree | da07e86d636947227fb09af0529b556c8f46842e | |
| parent | 9baa9ad7c725a8981ecb980e2f899992d1bc6772 (diff) | |
| download | bcm5719-llvm-3ade8929ef71ccf28a39906b4a192e8818936926.tar.gz bcm5719-llvm-3ade8929ef71ccf28a39906b4a192e8818936926.zip | |
Fixes to previous checkin
llvm-svn: 4314
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineCodeForInstruction.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineCodeForInstruction.h b/llvm/include/llvm/CodeGen/MachineCodeForInstruction.h index aa6ddd55ca1..2193a80e529 100644 --- a/llvm/include/llvm/CodeGen/MachineCodeForInstruction.h +++ b/llvm/include/llvm/CodeGen/MachineCodeForInstruction.h @@ -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... |

