aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2010-02-04 01:13:08 +0000
committerVictor Hernandez <vhernandez@apple.com>2010-02-04 01:13:08 +0000
commit6c24f9d4fc4f297d99aa1c06e5e90e11903c66fd (patch)
tree27f7c64c1cd8c519da09dcd06f60f02bebfd74d9 /test/Assembler
parentf62fb3016f3f784558a8d7cf1a7b1ca097525f89 (diff)
downloadexternal_llvm-6c24f9d4fc4f297d99aa1c06e5e90e11903c66fd.zip
external_llvm-6c24f9d4fc4f297d99aa1c06e5e90e11903c66fd.tar.gz
external_llvm-6c24f9d4fc4f297d99aa1c06e5e90e11903c66fd.tar.bz2
Fix (and test) function-local metadata that occurs before the instruction that it refers to; fix is to not enumerate operands of function-local metadata until after all instructions have been enumerated
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/functionlocal-metadata.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Assembler/functionlocal-metadata.ll b/test/Assembler/functionlocal-metadata.ll
index 16bc9d0..216587d 100644
--- a/test/Assembler/functionlocal-metadata.ll
+++ b/test/Assembler/functionlocal-metadata.ll
@@ -2,6 +2,8 @@
define void @Foo(i32 %a, i32 %b) {
entry:
+ call void @llvm.dbg.value(metadata !{ i32* %1 }, i64 16, metadata !"bar")
+; CHECK: call void @llvm.dbg.value(metadata !{i32* %1}, i64 16, metadata !"bar")
%0 = add i32 %a, 1 ; <i32> [#uses=1]
%two = add i32 %b, %0 ; <i32> [#uses=0]
%1 = alloca i32 ; <i32*> [#uses=1]