aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-08-05 01:06:44 +0000
committerJustin Bogner <mail@justinbogner.com>2016-08-05 01:06:44 +0000
commit9979840f59b3db81910cfc4cccf61ddf2159faab (patch)
treeb525b6e57a18f3cd5c1f8e3b1b86f7f54b6a6f41 /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
parent808d13ea49baf14ea67dc7db6b0669222603a9e8 (diff)
downloadllvm-9979840f59b3db81910cfc4cccf61ddf2159faab.zip
llvm-9979840f59b3db81910cfc4cccf61ddf2159faab.tar.gz
llvm-9979840f59b3db81910cfc4cccf61ddf2159faab.tar.bz2
InstCombine: Replace some never-null pointers with references. NFC
llvm-svn: 277792
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index b041c18..aec06f2 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -161,7 +161,7 @@ Value *InstCombiner::EvaluateInDifferentType(Value *V, Type *Ty,
if (Constant *C = dyn_cast<Constant>(V)) {
C = ConstantExpr::getIntegerCast(C, Ty, isSigned /*Sext or ZExt*/);
// If we got a constantexpr back, try to simplify it with DL info.
- if (Constant *FoldedC = ConstantFoldConstant(C, DL, TLI))
+ if (Constant *FoldedC = ConstantFoldConstant(C, DL, &TLI))
C = FoldedC;
return C;
}