[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCFrameInfo.h

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 15 22:10:10 PDT 2004



Changes in directory llvm/lib/Target/PowerPC:

PowerPCFrameInfo.h updated: 1.2 -> 1.3
---
Log message:

There is no need for a cast here


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
diff -u llvm/lib/Target/PowerPC/PowerPCFrameInfo.h:1.2 llvm/lib/Target/PowerPC/PowerPCFrameInfo.h:1.3
--- llvm/lib/Target/PowerPC/PowerPCFrameInfo.h:1.2	Sun Aug 15 04:17:00 2004
+++ llvm/lib/Target/PowerPC/PowerPCFrameInfo.h	Mon Aug 16 00:09:58 2004
@@ -36,7 +36,7 @@
   const std::pair<unsigned, int> *
   getCalleeSaveSpillSlots(unsigned &NumEntries) const {
     NumEntries = 1;
-    return static_cast<const std::pair<unsigned, int> *>(LR);
+    return &LR[0];
   }
 };
 






More information about the llvm-commits mailing list