summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCFrameInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h b/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
index c72da9ad26a..3c7777cecca 100644
--- a/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
+++ b/llvm/lib/Target/PowerPC/PowerPCFrameInfo.h
@@ -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];
}
};
OpenPOWER on IntegriCloud