aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/MachineCodeForInstruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-28 01:27:30 +0000
committerChris Lattner <sabre@nondot.org>2002-10-28 01:27:30 +0000
commita4f808b54eb68b636a139d6ddf9b99671e6818ea (patch)
treeb6b0525bbfd73f29856d5235bb064eb0adfe8889 /lib/Target/SparcV9/MachineCodeForInstruction.h
parent51a8d8528135ba4e3e4cf7cd711a9e47b19078a3 (diff)
Fixes to previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/MachineCodeForInstruction.h')
-rw-r--r--lib/Target/SparcV9/MachineCodeForInstruction.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.h b/lib/Target/SparcV9/MachineCodeForInstruction.h
index aa6ddd55ca..2193a80e52 100644
--- a/lib/Target/SparcV9/MachineCodeForInstruction.h
+++ b/lib/Target/SparcV9/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...