From 4d0fe64ae304cc9c3235daa7c1ddd8b51b163ab3 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Fri, 28 Apr 2017 19:55:38 +0000 Subject: Kill off the old SimplifyInstruction API by converting remaining users. llvm-svn: 301673 --- llvm/lib/Analysis/Lint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/Lint.cpp') diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp index 0f04af54cdc..59813824644 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(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(V)) { if (Value *W = ConstantFoldConstant(C, *DL, TLI)) -- cgit v1.2.3