summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ScalarReplAggregates.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/Scalar/ScalarReplAggregates.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/Scalar/ScalarReplAggregates.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index a26fcbefe81..a29fe4ad3eb 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -891,7 +891,7 @@ void SROA::ConvertToScalar(AllocationInst *AI, const Type *ActualTy) {
++NumConverted;
BasicBlock *EntryBlock = AI->getParent();
- assert(EntryBlock == &EntryBlock->getParent()->front() &&
+ assert(EntryBlock == &EntryBlock->getParent()->getEntryBlock() &&
"Not in the entry block!");
EntryBlock->getInstList().remove(AI); // Take the alloca out of the program.
OpenPOWER on IntegriCloud