OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb7e12
)
it isn't valid to take the address of the entry block.
author
Chris Lattner
<sabre@nondot.org>
Fri, 30 Oct 2009 22:15:48 +0000
(22:15 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 30 Oct 2009 22:15:48 +0000
(22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85621
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Verifier.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Verifier.cpp
b/lib/VMCore/Verifier.cpp
index
06eccc0
..
fc90148
100644
(file)
--- a/
lib/VMCore/Verifier.cpp
+++ b/
lib/VMCore/Verifier.cpp
@@
-658,6
+658,8
@@
void Verifier::visitFunction(Function &F) {
BasicBlock *Entry = &F.getEntryBlock();
Assert1(pred_begin(Entry) == pred_end(Entry),
"Entry block to function must not have predecessors!", Entry);
+ Assert1(!Entry->hasAddressTaken(),
+ "blockaddress may not be used with the entry block!", Entry);
}
// If this function is actually an intrinsic, verify that it is only used in