projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef2b0db
)
Fix retriving parent Function.
author
Misha Brukman
<brukman+llvm@gmail.com>
Fri, 16 Apr 2004 17:37:12 +0000
(17:37 +0000)
committer
Misha Brukman
<brukman+llvm@gmail.com>
Fri, 16 Apr 2004 17:37:12 +0000
(17:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13001
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/BasicBlock.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/BasicBlock.cpp
b/lib/VMCore/BasicBlock.cpp
index 48aa7cfe6f2213b5e3627559a3d7c52f2e457b3c..dd529f8ee326807b9d78a5c66b5163b44e4e3219 100644
(file)
--- 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();
}