summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430RegisterInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-12-28 02:07:00 +0000
committerBill Wendling <isanbard@gmail.com>2009-12-28 02:07:00 +0000
commit202249a6984a1fae296f5a9e8e5d4292251a7ce6 (patch)
tree878f11e5259460542154e35d70560e35cef62c8b /lib/Target/MSP430/MSP430RegisterInfo.cpp
parent57f08adbb339f1ea6c1f4417c27c14137b5cfde8 (diff)
downloadllvm-202249a6984a1fae296f5a9e8e5d4292251a7ce6.tar.gz
llvm-202249a6984a1fae296f5a9e8e5d4292251a7ce6.tar.bz2
llvm-202249a6984a1fae296f5a9e8e5d4292251a7ce6.tar.xz
Mark variable used by 'assert' as 'unused'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430RegisterInfo.cpp')
-rw-r--r--lib/Target/MSP430/MSP430RegisterInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.cpp b/lib/Target/MSP430/MSP430RegisterInfo.cpp
index da3ba05a1c..566d9028d4 100644
--- a/lib/Target/MSP430/MSP430RegisterInfo.cpp
+++ b/lib/Target/MSP430/MSP430RegisterInfo.cpp
@@ -270,10 +270,10 @@ MSP430RegisterInfo::processFunctionBeforeFrameFinalized(MachineFunction &MF)
const {
// Create a frame entry for the FPW register that must be saved.
if (hasFP(MF)) {
- int FrameIdx = MF.getFrameInfo()->CreateFixedObject(2, -4, true, false);
+ int ATTRIBUTE_UNUSED FrameIdx =
+ MF.getFrameInfo()->CreateFixedObject(2, -4, true, false);
assert(FrameIdx == MF.getFrameInfo()->getObjectIndexBegin() &&
"Slot for FPW register must be last in order to be found!");
- FrameIdx = 0;
}
}