diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-06-24 17:59:34 +0100 |
---|---|---|
committer | Stephen Tozer <stephen.tozer@sony.com> | 2024-06-24 18:00:22 +0100 |
commit | d75f9dd1d29b332bdc51346de63cbc04646354d7 (patch) | |
tree | dc4cbd48bb980d4a2aba3c329b472060f74a1421 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 3b5b814647ef83ab763cf7871b6d74edfca67438 (diff) | |
download | llvm-d75f9dd1d29b332bdc51346de63cbc04646354d7.zip llvm-d75f9dd1d29b332bdc51346de63cbc04646354d7.tar.gz llvm-d75f9dd1d29b332bdc51346de63cbc04646354d7.tar.bz2 |
Revert "[IR][NFC] Update IRBuilder to use InsertPosition (#96497)"
Reverts the above commit, as it updates a common header function and
did not update all callsites:
https://lab.llvm.org/buildbot/#/builders/29/builds/382
This reverts commit 6481dc57612671ebe77fe9c34214fba94e1b3b27.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index ffcc4b9..650c566 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -2764,7 +2764,7 @@ void CodeGenFunction::EmitSanitizerStatReport(llvm::SanitizerStatKind SSK) { if (!CGM.getCodeGenOpts().SanitizeStats) return; - llvm::IRBuilder<> IRB(Builder.GetInsertPoint()); + llvm::IRBuilder<> IRB(Builder.GetInsertBlock(), Builder.GetInsertPoint()); IRB.SetCurrentDebugLocation(Builder.getCurrentDebugLocation()); CGM.getSanStats().create(IRB, SSK); } @@ -2883,7 +2883,7 @@ void CodeGenFunction::EmitAArch64MultiVersionResolver( } if (!AArch64CpuInitialized) { - Builder.SetInsertPoint(CurBlock->begin()); + Builder.SetInsertPoint(CurBlock, CurBlock->begin()); EmitAArch64CpuInit(); AArch64CpuInitialized = true; Builder.SetInsertPoint(CurBlock); |