summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-03-22 16:38:57 +0000
committerDan Gohman <gohman@apple.com>2007-03-22 16:38:57 +0000
commitdcb291faa4e15d0e0873e76d844d0535ac348afe (patch)
treebc1ad467f377cbb8d0f9ccae56b27586d660c920 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent085b8d7ae2f8a3ce28f2da0b33a6b9e734c70823 (diff)
downloadbcm5719-llvm-dcb291faa4e15d0e0873e76d844d0535ac348afe.tar.gz
bcm5719-llvm-dcb291faa4e15d0e0873e76d844d0535ac348afe.zip
Change uses of Function::front to Function::getEntryBlock for readability.
llvm-svn: 35265
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index d57a8f58aba..a1a638b0c2c 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -265,9 +265,10 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
// Transfer all of the allocas over in a block. Using splice means
// that the instructions aren't removed from the symbol table, then
// reinserted.
- Caller->front().getInstList().splice(InsertPoint,
- FirstNewBlock->getInstList(),
- AI, I);
+ Caller->getEntryBlock().getInstList().splice(
+ InsertPoint,
+ FirstNewBlock->getInstList(),
+ AI, I);
}
}
}
OpenPOWER on IntegriCloud