There is no need for a cast here
authorChris Lattner <sabre@nondot.org>
Mon, 16 Aug 2004 05:09:58 +0000 (05:09 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 16 Aug 2004 05:09:58 +0000 (05:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15810 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCFrameInfo.h

index c72da9ad26a5e887ece59ed36ec338d9fd3a2274..3c7777ceccaf9ec4fbcd17afbc1fede0a5c981aa 100644 (file)
@@ -36,7 +36,7 @@ public:
   const std::pair<unsigned, int> *
   getCalleeSaveSpillSlots(unsigned &NumEntries) const {
     NumEntries = 1;
-    return static_cast<const std::pair<unsigned, int> *>(LR);
+    return &LR[0];
   }
 };