aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2013-07-26 22:06:21 +0000
committerOwen Anderson <resistor@mac.com>2013-07-26 22:06:21 +0000
commit107c578126c477ad330bb79defb10ef14eb7dad3 (patch)
tree0d12e92ec3bb2b9820895387f27ad949e9824eb6
parent252d41691a2d9fc66173f917d538d0b2767b6440 (diff)
downloadexternal_llvm-107c578126c477ad330bb79defb10ef14eb7dad3.zip
external_llvm-107c578126c477ad330bb79defb10ef14eb7dad3.tar.gz
external_llvm-107c578126c477ad330bb79defb10ef14eb7dad3.tar.bz2
Fix variable name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187253 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/InstCombine/InstCombineAddSub.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/lib/Transforms/InstCombine/InstCombineAddSub.cpp
index 8d4677b..1fa6897 100644
--- a/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+++ b/lib/Transforms/InstCombine/InstCombineAddSub.cpp
@@ -1539,8 +1539,8 @@ Instruction *InstCombiner::visitFSub(BinaryOperator &I) {
}
} else if (FPExtInst *FPEI = dyn_cast<FPExtInst>(Op1)) {
if (Value *V = dyn_castFNegVal(FPEI->getOperand(0))) {
- Value *NewTrunc = Builder->CreateFPExt(V, I.getType());
- return BinaryOperator::CreateFAdd(Op0, NewTrunc);
+ Value *NewExt = Builder->CreateFPExt(V, I.getType());
+ return BinaryOperator::CreateFAdd(Op0, NewExt);
}
}