diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-04-16 17:37:12 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-04-16 17:37:12 +0000 |
commit | ea51deb18a60d37e546909af4aa95ca6f2c5d56f (patch) | |
tree | 8fac1c37c13d41e35640a7b9dacf06438495a4c2 /lib/VMCore | |
parent | ef2b0db85866e64770f9458ff9a52b9209c17753 (diff) | |
download | external_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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 2 |
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(); } |