diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-01-21 22:41:16 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-01-21 22:41:16 +0000 |
commit | 042aed90ab9cebccb05123c1298a30ddaaedcd38 (patch) | |
tree | 0120a1e73ef367752a9364a0a5d9d9a8150577e6 | |
parent | 0e603fc3a7b3016ee99e2be6e08ed90628ffb7ae (diff) | |
download | bcm5719-llvm-042aed90ab9cebccb05123c1298a30ddaaedcd38.tar.gz bcm5719-llvm-042aed90ab9cebccb05123c1298a30ddaaedcd38.zip |
avoid variable shadowing; NFC
llvm-svn: 258445
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp index b2de502cd7f..654170122d3 100644 --- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -1255,10 +1255,10 @@ Value *LibCallSimplifier::optimizeExp2(CallInst *CI, IRBuilder<> &B) { One = ConstantExpr::getFPExtend(One, Op->getType()); Module *M = CI->getModule(); - Value *Callee = + Value *NewCallee = M->getOrInsertFunction(TLI->getName(LdExp), Op->getType(), Op->getType(), B.getInt32Ty(), nullptr); - CallInst *CI = B.CreateCall(Callee, {One, LdExpArg}); + CallInst *CI = B.CreateCall(NewCallee, {One, LdExpArg}); if (const Function *F = dyn_cast<Function>(Callee->stripPointerCasts())) CI->setCallingConv(F->getCallingConv()); |