diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-05-18 22:13:54 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-05-18 22:13:54 +0000 |
| commit | ff6409d096fc554259eb4a91a493d1638cc53474 (patch) | |
| tree | e4b9a9a396b2d0d34e866bf62320b1072ca400d2 /llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp | |
| parent | 6ba93ec71d59538375d361a9828224887633ffca (diff) | |
| download | bcm5719-llvm-ff6409d096fc554259eb4a91a493d1638cc53474.tar.gz bcm5719-llvm-ff6409d096fc554259eb4a91a493d1638cc53474.zip | |
Simplify IRBuilder::CreateCall* by using ArrayRef+initializer_list/braced init only
llvm-svn: 237624
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp index 8113834ec0e..f6858034d79 100644 --- a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp +++ b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp @@ -82,7 +82,7 @@ BasicBlock *BoundsChecking::getTrapBB() { Builder->SetInsertPoint(TrapBB); llvm::Value *F = Intrinsic::getDeclaration(Fn->getParent(), Intrinsic::trap); - CallInst *TrapCall = Builder->CreateCall(F); + CallInst *TrapCall = Builder->CreateCall(F, {}); TrapCall->setDoesNotReturn(); TrapCall->setDoesNotThrow(); TrapCall->setDebugLoc(Inst->getDebugLoc()); |

