summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2020-08-11 14:07:08 -0400
committerNathaniel McCallum <npmccallum@redhat.com>2020-08-11 15:00:23 -0400
commit0356bb9fbba55f0a8fbe38731d41f57048f2e00b (patch)
treec1a6bb9840d5c0a466e3a8676843d080a62a0c0b /src/test/codegen
parentcbe7c5ce705896d4e22bf6096590bc1f17993b78 (diff)
downloadrust-0356bb9fbba55f0a8fbe38731d41f57048f2e00b.tar.gz
rust-0356bb9fbba55f0a8fbe38731d41f57048f2e00b.zip
Revert "Suppress debuginfo on naked function arguments"
This reverts commit 25670749b44a9c7a4cfd3fbf780bbe3344a9a6c5.

This commit does not actually fix the problem. It merely removes the name of
the argument from the LLVM output. Even without the name, Rust codegen still
spills the (nameless) variable onto the stack which is the root cause. The root
cause is solved in the next commit.
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/naked-functions.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/codegen/naked-functions.rs b/src/test/codegen/naked-functions.rs
index 758c6c4da92..493c1b9f0ba 100644
--- a/src/test/codegen/naked-functions.rs
+++ b/src/test/codegen/naked-functions.rs
@@ -18,7 +18,7 @@ pub fn naked_empty() {
 // CHECK-NEXT: define void @naked_with_args(i{{[0-9]+( %0)?}})
 pub fn naked_with_args(a: isize) {
     // CHECK-NEXT: {{.+}}:
-    // CHECK-NEXT: %_1 = alloca i{{[0-9]+}}
+    // CHECK-NEXT: %a = alloca i{{[0-9]+}}
     &a; // keep variable in an alloca
     // CHECK: ret void
 }
@@ -39,7 +39,7 @@ pub fn naked_with_return() -> isize {
 #[naked]
 pub fn naked_with_args_and_return(a: isize) -> isize {
     // CHECK-NEXT: {{.+}}:
-    // CHECK-NEXT: %_1 = alloca i{{[0-9]+}}
+    // CHECK-NEXT: %a = alloca i{{[0-9]+}}
     &a; // keep variable in an alloca
     // CHECK: ret i{{[0-9]+}} %{{[0-9]+}}
     a