aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-04-16 17:37:12 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-04-16 17:37:12 +0000
commitea51deb18a60d37e546909af4aa95ca6f2c5d56f (patch)
tree8fac1c37c13d41e35640a7b9dacf06438495a4c2
parentef2b0db85866e64770f9458ff9a52b9209c17753 (diff)
downloadexternal_llvm-ea51deb18a60d37e546909af4aa95ca6f2c5d56f.zip
external_llvm-ea51deb18a60d37e546909af4aa95ca6f2c5d56f.tar.gz
external_llvm-ea51deb18a60d37e546909af4aa95ca6f2c5d56f.tar.bz2
Fix retriving parent Function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13001 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/BasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp
index 48aa7cf..dd529f8 100644
--- a/lib/VMCore/BasicBlock.cpp
+++ b/lib/VMCore/BasicBlock.cpp
@@ -81,7 +81,7 @@ BasicBlock::BasicBlock(const std::string &Name, Function *Parent,
BasicBlock::~BasicBlock() {
- assert(Parent == 0 && "BasicBlock still linked into the program!");
+ assert(getParent() == 0 && "BasicBlock still linked into the program!");
dropAllReferences();
InstList.clear();
}