diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-11 08:18:12 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-11 08:18:12 +0000 |
commit | c5080ba0c8278fba57efe605560d1f16a7a9e973 (patch) | |
tree | 96e52957ad3c4baee3f9c639c5272eeaa39acd09 /lib/Target/MSP430 | |
parent | a98625cdad0a4fefaaf00174669e0cd2f0dbe1bd (diff) | |
download | external_llvm-c5080ba0c8278fba57efe605560d1f16a7a9e973.zip external_llvm-c5080ba0c8278fba57efe605560d1f16a7a9e973.tar.gz external_llvm-c5080ba0c8278fba57efe605560d1f16a7a9e973.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.cpp | 4 |
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!"); } |