address-taken. This can occur normally, if the code which took the
address got DCEd.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111121
91177308-0d34-0410-b5e6-
96231b3b80d8
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) {
}
; 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: