
We currently accept label arguments to inline asm calls. This support predates both blockaddresses and callbr and is only covered by one X86 test. Remove it in favor of callbr (or at least blockaddress, though that cannot guarantee correct codegen, just like using block labels directly can't). I didn't bother implementing bitcode upgrade support for this, but I can add it if desired.
12 lines
213 B
LLVM
12 lines
213 B
LLVM
; RUN: not llvm-as < %s >/dev/null 2> %t
|
|
; RUN: FileCheck %s < %t
|
|
; Test the case where an invalid label name is used
|
|
|
|
; CHECK: invalid type for function argument
|
|
|
|
define void @test(label %bb) {
|
|
bb:
|
|
ret void
|
|
}
|
|
|