mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
Revert r111058, the lint check for indirectbr successors that aren't
address-taken. This can occur normally, if the code which took the address got DCEd. llvm-svn: 111121
This commit is contained in:
parent
0224854fdc
commit
8ed4d1646e
@ -521,12 +521,6 @@ void Lint::visitIndirectBrInst(IndirectBrInst &I) {
|
||||
|
||||
Assert1(I.getNumDestinations() != 0,
|
||||
"Undefined behavior: indirectbr with no destinations", &I);
|
||||
|
||||
for (unsigned i = 0, e = I.getNumDestinations(); i != e; ++i)
|
||||
Assert1(I.getDestination(i)->hasAddressTaken(),
|
||||
"Unusual: indirectbr destination has not "
|
||||
"had its address taken",
|
||||
&I);
|
||||
}
|
||||
|
||||
void Lint::visitExtractElementInst(ExtractElementInst &I) {
|
||||
|
@ -102,7 +102,6 @@ define void @not_vararg(i8* %p) nounwind {
|
||||
}
|
||||
|
||||
; CHECK: Undefined behavior: Branch to non-blockaddress
|
||||
; CHECK: Unusual: indirectbr destination has not had its address taken
|
||||
define void @use_indbr() {
|
||||
indirectbr i8* bitcast (i32()* @foo to i8*), [label %block]
|
||||
block:
|
||||
|
Loading…
Reference in New Issue
Block a user