diff options
author | Zola Bridges <zbrid@google.com> | 2018-11-26 20:11:18 +0000 |
---|---|---|
committer | Zola Bridges <zbrid@google.com> | 2018-11-26 20:11:18 +0000 |
commit | e8e8c5cf4dfb2cd8a2505db9d8d103661a153458 (patch) | |
tree | d0fc61070fb3024b6228785b7da9aec7b35af284 /clang/test/CodeGen/attr-speculative-load-hardening.cpp | |
parent | 4ed350d6c4b9a7526ea16b23dd638dc7cf62c602 (diff) | |
download | bcm5719-llvm-e8e8c5cf4dfb2cd8a2505db9d8d103661a153458.tar.gz bcm5719-llvm-e8e8c5cf4dfb2cd8a2505db9d8d103661a153458.zip |
Revert "[clang][slh] add attribute for speculative load hardening"
This reverts commit 801eaf91221ba6dd6996b29ff82659ad6359e885.
llvm-svn: 347588
Diffstat (limited to 'clang/test/CodeGen/attr-speculative-load-hardening.cpp')
-rw-r--r-- | clang/test/CodeGen/attr-speculative-load-hardening.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/clang/test/CodeGen/attr-speculative-load-hardening.cpp b/clang/test/CodeGen/attr-speculative-load-hardening.cpp deleted file mode 100644 index e2eb805cbb8..00000000000 --- a/clang/test/CodeGen/attr-speculative-load-hardening.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// RUN: %clang_cc1 -std=c++11 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK1 -// RUN: %clang_cc1 -std=c++11 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK2 -// -// Check that we set the attribute on each function. - -[[clang::speculative_load_hardening]] -int test1() { - return 42; -} - -int __attribute__((speculative_load_hardening)) test2() { - return 42; -} -// CHECK1: @{{.*}}test1{{.*}}[[SLH1:#[0-9]+]] -// CHECK1: attributes [[SLH1]] = { {{.*}}speculative_load_hardening{{.*}} } - -// CHECK2: @{{.*}}test2{{.*}}[[SLH2:#[0-9]+]] -// CHECK2: attributes [[SLH2]] = { {{.*}}speculative_load_hardening{{.*}} } |