summaryrefslogtreecommitdiff
path: root/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
commitecb7a77885b174cf4d001a9b48533b3979e7810d (patch)
treeed6b55df739771a7691a200f47883ddde4c45f53 /lib/Transforms/Utils/InlineFunction.cpp
parent2b48420c642de2fbf68a96d9b0bf45b5379455f3 (diff)
downloadllvm-ecb7a77885b174cf4d001a9b48533b3979e7810d.tar.gz
llvm-ecb7a77885b174cf4d001a9b48533b3979e7810d.tar.bz2
llvm-ecb7a77885b174cf4d001a9b48533b3979e7810d.tar.xz
Change uses of Function::front to Function::getEntryBlock for readability.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index d57a8f58ab..a1a638b0c2 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/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);
}
}
}