
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.
10 lines
163 B
LLVM
10 lines
163 B
LLVM
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: invalid type for function argument
|
|
define void @test() {
|
|
bb:
|
|
call void asm "", ""(label %bb)
|
|
ret void
|
|
}
|
|
|