File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class RISCVTargetInfo : public TargetInfo {
143
143
144
144
bool
145
145
checkCFProtectionReturnSupported (DiagnosticsEngine &Diags) const override {
146
- if (ISAInfo->hasExtension (" zimop " ))
146
+ if (ISAInfo->hasExtension (" zicfiss " ))
147
147
return true ;
148
148
return TargetInfo::checkCFProtectionReturnSupported (Diags);
149
149
}
Original file line number Diff line number Diff line change 1
- // RUN: %clang_cc1 -triple riscv64-unknown-linux -target-feature +zimop -emit-llvm -o - %s -fcf-protection=return | FileCheck %s
2
- // RUN: %clang_cc1 -triple riscv64-unknown-linux -target-feature +zimop -emit-llvm -o - %s | FileCheck -check-prefix=NOSHADOWSTACK %s
3
- // RUN: %clang_cc1 -triple riscv32-unknown-linux -target-feature +zimop -emit-llvm -o - %s -fcf-protection=return | FileCheck %s
4
- // RUN: %clang_cc1 -triple riscv32-unknown-linux -target-feature +zimop -emit-llvm -o - %s | FileCheck -check-prefix=NOSHADOWSTACK %s
1
+ // RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-zicfiss -emit-llvm -o - %s -fcf-protection=return | FileCheck %s
2
+ // RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-zicfiss -emit-llvm -o - %s | FileCheck -check-prefix=NOSHADOWSTACK %s
3
+ // RUN: %clang_cc1 -triple riscv32 -target-feature +experimental-zicfiss -emit-llvm -o - %s -fcf-protection=return | FileCheck %s
4
+ // RUN: %clang_cc1 -triple riscv32 -target-feature +experimental-zicfiss -emit-llvm -o - %s | FileCheck -check-prefix=NOSHADOWSTACK %s
5
5
6
6
int foo (int * a ) { return * a ; }
7
7
You can’t perform that action at this time.
0 commit comments