diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index 0abf6d7..f1f2d52 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -1901,8 +1901,7 @@ Value *llvm::addRuntimeChecks( expandBounds(PointerChecks, TheLoop, Loc, Exp, HoistRuntimeChecks); LLVMContext &Ctx = Loc->getContext(); - IRBuilder<InstSimplifyFolder> ChkBuilder(Ctx, - Loc->getDataLayout()); + IRBuilder ChkBuilder(Ctx, InstSimplifyFolder(Loc->getDataLayout())); ChkBuilder.SetInsertPoint(Loc); // Our instructions might fold to a constant. Value *MemoryRuntimeCheck = nullptr; @@ -1955,8 +1954,7 @@ Value *llvm::addDiffRuntimeChecks( function_ref<Value *(IRBuilderBase &, unsigned)> GetVF, unsigned IC) { LLVMContext &Ctx = Loc->getContext(); - IRBuilder<InstSimplifyFolder> ChkBuilder(Ctx, - Loc->getDataLayout()); + IRBuilder ChkBuilder(Ctx, InstSimplifyFolder(Loc->getDataLayout())); ChkBuilder.SetInsertPoint(Loc); // Our instructions might fold to a constant. Value *MemoryRuntimeCheck = nullptr; |