[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineCodeForInstruction.h

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 27 19:28:01 PST 2002


Changes in directory llvm/include/llvm/CodeGen:

MachineCodeForInstruction.h updated: 1.4 -> 1.5

---
Log message:

Fixes to previous checkin


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineCodeForInstruction.h
diff -u llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.4 llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.5
--- llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.4	Sun Oct 27 19:21:54 2002
+++ llvm/include/llvm/CodeGen/MachineCodeForInstruction.h	Sun Oct 27 19:27:30 2002
@@ -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...





More information about the llvm-commits mailing list