Fixes to previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4314 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.h b/lib/Target/SparcV9/MachineCodeForInstruction.h
index aa6ddd5..2193a80 100644
--- a/lib/Target/SparcV9/MachineCodeForInstruction.h
+++ b/lib/Target/SparcV9/MachineCodeForInstruction.h
@@ -35,10 +35,11 @@
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...