diff options
Diffstat (limited to 'test/CodeGen/CBackend/2004-08-09-va-end-null.ll')
-rw-r--r-- | test/CodeGen/CBackend/2004-08-09-va-end-null.ll | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/CodeGen/CBackend/2004-08-09-va-end-null.ll b/test/CodeGen/CBackend/2004-08-09-va-end-null.ll index f8e8fe5..ae7ba53 100644 --- a/test/CodeGen/CBackend/2004-08-09-va-end-null.ll +++ b/test/CodeGen/CBackend/2004-08-09-va-end-null.ll @@ -1,9 +1,10 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=c +; RUN: llvm-as < %s | llc -march=c -declare void %llvm.va_end(sbyte*) +declare void @llvm.va_end(i8*) -void %test() { - call void %llvm.va_end( sbyte* null ) - ret void +define void @test() { + %va.upgrd.1 = bitcast i8* null to i8* ; <i8*> [#uses=1] + call void @llvm.va_end( i8* %va.upgrd.1 ) + ret void } |