mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Simplify IRBuilder::CreateCall* by using ArrayRef+initializer_list/braced init only
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -348,7 +348,7 @@ void InstrProfiling::emitInitialization() {
|
||||
// Add the basic block and the necessary calls.
|
||||
IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", F));
|
||||
if (RegisterF)
|
||||
IRB.CreateCall(RegisterF);
|
||||
IRB.CreateCall(RegisterF, {});
|
||||
if (!InstrProfileOutput.empty()) {
|
||||
auto *Int8PtrTy = Type::getInt8PtrTy(M->getContext());
|
||||
auto *SetNameTy = FunctionType::get(VoidTy, Int8PtrTy, false);
|
||||
|
Reference in New Issue
Block a user