aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/ConstantFold.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-09-25 23:32:20 +0000
committerDale Johannesen <dalej@apple.com>2007-09-25 23:32:20 +0000
commit350add8f510f54f7728721d15e9c319c47dbe55b (patch)
tree8ed8b1685519022b54062be9b6e3d40fd9ea26ff /lib/VMCore/ConstantFold.cpp
parent0edc47ad7b3fb5ad5f9dcd4139f3074dd11ff457 (diff)
downloadexternal_llvm-350add8f510f54f7728721d15e9c319c47dbe55b.zip
external_llvm-350add8f510f54f7728721d15e9c319c47dbe55b.tar.gz
external_llvm-350add8f510f54f7728721d15e9c319c47dbe55b.tar.bz2
Remove no-longer-used variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
-rw-r--r--lib/VMCore/ConstantFold.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp
index 7154afb..73ca47a 100644
--- a/lib/VMCore/ConstantFold.cpp
+++ b/lib/VMCore/ConstantFold.cpp
@@ -194,9 +194,8 @@ Constant *llvm::ConstantFoldCastInstruction(unsigned opc, const Constant *V,
APFloat V = FPC->getValueAPF();
uint64_t x[2];
uint32_t DestBitWidth = cast<IntegerType>(DestTy)->getBitWidth();
- APFloat::opStatus status = V.convertToInteger(x, DestBitWidth,
- opc==Instruction::FPToSI,
- APFloat::rmTowardZero);
+ (void) V.convertToInteger(x, DestBitWidth, opc==Instruction::FPToSI,
+ APFloat::rmTowardZero);
APInt Val(DestBitWidth, 2, x);
return ConstantInt::get(Val);
}