summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-01-30 19:37:48 +0000
committerAdrian Prantl <aprantl@apple.com>2015-01-30 19:37:48 +0000
commit3e2659eb92aeefef87dd16ede20efd45fb034fc2 (patch)
treec006ef0d9b52cb9067065b0670436c978efd3f78 /llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
parent70fe588c889ea58c9a9d1d369bb3bbf96413e365 (diff)
downloadbcm5719-llvm-3e2659eb92aeefef87dd16ede20efd45fb034fc2.tar.gz
bcm5719-llvm-3e2659eb92aeefef87dd16ede20efd45fb034fc2.zip
Inliner: Use replaceDbgDeclareForAlloca() instead of splicing the
instruction and generalize it to optionally dereference the variable. Follow-up to r227544. llvm-svn: 227604
Diffstat (limited to 'llvm/test/Transforms/Inline/alloca-dbgdeclare.ll')
-rw-r--r--llvm/test/Transforms/Inline/alloca-dbgdeclare.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll b/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
index 8ad500499ee..6809e41495e 100644
--- a/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
+++ b/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
@@ -40,7 +40,7 @@ entry:
; CHECK: define void @_Z3fn5v()
; CHECK-NEXT: entry:
; CHECK-NEXT: %agg.tmp.sroa.3.i = alloca [20 x i8], align 4
-; CHECK-NEXT: tail call void @llvm.dbg.declare(metadata [20 x i8]* %agg.tmp.sroa.3.i,
+; CHECK-NEXT: call void @llvm.dbg.declare(metadata [20 x i8]* %agg.tmp.sroa.3.i,
%agg.tmp.sroa.3 = alloca [20 x i8], align 4
tail call void @llvm.dbg.declare(metadata [20 x i8]* %agg.tmp.sroa.3, metadata !46, metadata !48), !dbg !49
%agg.tmp.sroa.0.0.copyload = load i32* getelementptr inbounds (%struct.A* @b, i64 0, i32 0), align 8, !dbg !50
OpenPOWER on IntegriCloud