summaryrefslogtreecommitdiff
path: root/lib/Analysis/Lint.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-12-02 01:26:24 +0000
committerChad Rosier <mcrosier@apple.com>2011-12-02 01:26:24 +0000
commitaab8e28d5e470711d80276bbf717408c3ab966fd (patch)
tree9f0450dbe079f0f14680f58b8aff59ea2ef42c87 /lib/Analysis/Lint.cpp
parent7636bf6530fd83bf7356ae3894246a4e558741a4 (diff)
downloadllvm-aab8e28d5e470711d80276bbf717408c3ab966fd.tar.gz
llvm-aab8e28d5e470711d80276bbf717408c3ab966fd.tar.bz2
llvm-aab8e28d5e470711d80276bbf717408c3ab966fd.tar.xz
Fix a few more places where TargetData/TargetLibraryInfo is not being passed.
Add FIXMEs to places that are non-trivial to fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/Lint.cpp')
-rw-r--r--lib/Analysis/Lint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/Lint.cpp b/lib/Analysis/Lint.cpp
index 94dbd4be72..971065f8d4 100644
--- a/lib/Analysis/Lint.cpp
+++ b/lib/Analysis/Lint.cpp
@@ -622,7 +622,7 @@ Value *Lint::findValueImpl(Value *V, bool OffsetOk,
if (Value *W = SimplifyInstruction(Inst, TD, TLI, DT))
return findValueImpl(W, OffsetOk, Visited);
} else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {
- if (Value *W = ConstantFoldConstantExpression(CE, TD))
+ if (Value *W = ConstantFoldConstantExpression(CE, TD, TLI))
if (W != V)
return findValueImpl(W, OffsetOk, Visited);
}