aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomasp@graphcore.ai>2021-04-03 11:49:50 +0100
committerThomas Preud'homme <thomasp@graphcore.ai>2021-04-20 12:07:41 +0100
commit8cee150e9ac467dd93199722b8bd8af3024df697 (patch)
tree09bd08025db56e812693e4feb698c9619c3fa8a4
parent[AMDGPU] Re-arrange ds_read/ds_write ISel pattern for better readability. (diff)
downloadllvm-project-8cee150e9ac467dd93199722b8bd8af3024df697.tar.gz
llvm-project-8cee150e9ac467dd93199722b8bd8af3024df697.tar.bz2
llvm-project-8cee150e9ac467dd93199722b8bd8af3024df697.zip
[C++, test] Fix typo in NSS* vars
The NSS FileCheck variables at the end of the CodeGenCXX/split-stacks.cpp clang testcase are off by 1, resulting in the use of an undefined variable (NSS3). One of the CHECK-NOT is also redundant because _Z8tnosplitIiEiv uses the same attribute as _Z3foov without split stack. This commit fixes that. Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D99839
-rw-r--r--clang/test/CodeGenCXX/split-stacks.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/split-stacks.cpp b/clang/test/CodeGenCXX/split-stacks.cpp
index 2373bcc982f5..5f6a65557f4d 100644
--- a/clang/test/CodeGenCXX/split-stacks.cpp
+++ b/clang/test/CodeGenCXX/split-stacks.cpp
@@ -27,7 +27,6 @@ int nosplit() {
// CHECK-NOSEGSTK: define dso_local i32 @_Z3foov() [[NSS0:#[0-9]+]] {
// CHECK-NOSEGSTK: define dso_local i32 @_Z7nosplitv() [[NSS1:#[0-9]+]] {
-// CHECK-NOSEGSTK: define linkonce_odr dso_local i32 @_Z8tnosplitIiEiv() [[NSS2:#[0-9]+]] comdat {
+// CHECK-NOSEGSTK: define linkonce_odr dso_local i32 @_Z8tnosplitIiEiv() [[NSS0]] comdat {
+// CHECK-NOSEGSTK-NOT: [[NSS0]] = { {{.*}} "split-stack" {{.*}} }
// CHECK-NOSEGSTK-NOT: [[NSS1]] = { {{.*}} "split-stack" {{.*}} }
-// CHECK-NOSEGSTK-NOT: [[NSS2]] = { {{.*}} "split-stack" {{.*}} }
-// CHECK-NOSEGSTK-NOT: [[NSS3]] = { {{.*}} "split-stack" {{.*}} }