diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2017-04-28 19:55:38 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2017-04-28 19:55:38 +0000 |
commit | 4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3 (patch) | |
tree | 08fd126f85db9e1ea5d571f0686fe13fa2cc7310 /llvm/lib/Analysis/Lint.cpp | |
parent | b6681e2b4e82cb11bd21a7cbf01abea165f32508 (diff) | |
download | llvm-4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3.zip llvm-4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3.tar.gz llvm-4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3.tar.bz2 |
Kill off the old SimplifyInstruction API by converting remaining users.
llvm-svn: 301673
Diffstat (limited to 'llvm/lib/Analysis/Lint.cpp')
-rw-r--r-- | llvm/lib/Analysis/Lint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp index 0f04af5..5981382 100644 --- a/llvm/lib/Analysis/Lint.cpp +++ b/llvm/lib/Analysis/Lint.cpp @@ -699,7 +699,7 @@ Value *Lint::findValueImpl(Value *V, bool OffsetOk, // As a last resort, try SimplifyInstruction or constant folding. if (Instruction *Inst = dyn_cast<Instruction>(V)) { - if (Value *W = SimplifyInstruction(Inst, *DL, TLI, DT, AC)) + if (Value *W = SimplifyInstruction(Inst, {*DL, TLI, DT, AC})) return findValueImpl(W, OffsetOk, Visited); } else if (auto *C = dyn_cast<Constant>(V)) { if (Value *W = ConstantFoldConstant(C, *DL, TLI)) |