aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/MSP430
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-07-11 08:18:12 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-07-11 08:18:12 +0000
commitf3c1d64b732e9cf5d0eecc2cdcb92f7d724f9a00 (patch)
tree96e52957ad3c4baee3f9c639c5272eeaa39acd09 /lib/Target/MSP430
parent017583af379873cfbcd8ce98d2a003ee9b03dbf2 (diff)
downloadexternal_llvm-f3c1d64b732e9cf5d0eecc2cdcb92f7d724f9a00.zip
external_llvm-f3c1d64b732e9cf5d0eecc2cdcb92f7d724f9a00.tar.gz
external_llvm-f3c1d64b732e9cf5d0eecc2cdcb92f7d724f9a00.tar.bz2
Remove two other uses of ATTRIBUTE_UNUSED for variables only used within
assert()s, switching to void-casts. Removed an unneeded Compiler.h include as a result. There are two other uses in LLVM, but they're not due to assert()s, so I've left them alone. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-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 e7671f3..608ca49 100644
--- a/lib/Target/MSP430/MSP430RegisterInfo.cpp
+++ b/lib/Target/MSP430/MSP430RegisterInfo.cpp
@@ -228,8 +228,8 @@ MSP430RegisterInfo::processFunctionBeforeFrameFinalized(MachineFunction &MF)
const {
// Create a frame entry for the FPW register that must be saved.
if (hasFP(MF)) {
- int ATTRIBUTE_UNUSED FrameIdx =
- MF.getFrameInfo()->CreateFixedObject(2, -4, true);
+ int FrameIdx = MF.getFrameInfo()->CreateFixedObject(2, -4, true);
+ (void)FrameIdx;
assert(FrameIdx == MF.getFrameInfo()->getObjectIndexBegin() &&
"Slot for FPW register must be last in order to be found!");
}