aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorVasileios Porpodas <vporpodas@google.com>2022-12-14 15:57:08 -0800
committerVasileios Porpodas <vporpodas@google.com>2022-12-15 10:03:37 -0800
commit80f2f1eabc491cde39d543e4ebda93e2d2974d1f (patch)
treea1a1d52b6cbd050a0830c45e322caae50468de27 /clang/lib/CodeGen/CodeGenFunction.cpp
parent40cc041d4eec7306a67bfdbfeaa8796b8d856b60 (diff)
downloadllvm-80f2f1eabc491cde39d543e4ebda93e2d2974d1f.zip
llvm-80f2f1eabc491cde39d543e4ebda93e2d2974d1f.tar.gz
llvm-80f2f1eabc491cde39d543e4ebda93e2d2974d1f.tar.bz2
[NFC] Rename Function::insertBasicBlockAt() to Function::insert().
I think this is a better name because it is what STL uses. Differential Revision: https://reviews.llvm.org/D140068
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 09dc638a..ad5ffec 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -320,7 +320,7 @@ llvm::DebugLoc CodeGenFunction::EmitReturnBlock() {
static void EmitIfUsed(CodeGenFunction &CGF, llvm::BasicBlock *BB) {
if (!BB) return;
if (!BB->use_empty()) {
- CGF.CurFn->insertBasicBlockAt(CGF.CurFn->end(), BB);
+ CGF.CurFn->insert(CGF.CurFn->end(), BB);
return;
}
delete BB;