mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 02:59:15 +00:00
Fix retriving parent Function.
llvm-svn: 13001
This commit is contained in:
parent
a2cc39ff28
commit
cb5de6bca6
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user