mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
it isn't valid to take the address of the entry block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85621 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7cb7e12c08
commit
287db0c23c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user