aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNick Sarnie <nick.sarnie@intel.com>2025-03-28 10:19:20 -0400
committerGitHub <noreply@github.com>2025-03-28 14:19:20 +0000
commit48b753027382a5815295d6680c7dd407be936c86 (patch)
treef5a9d6ab54ccceeb39de839a6280bb50ba89df42 /clang/lib/CodeGen/CodeGenModule.cpp
parent427725508b084c7aa595312967d74d8888b168b6 (diff)
downloadllvm-48b753027382a5815295d6680c7dd407be936c86.zip
llvm-48b753027382a5815295d6680c7dd407be936c86.tar.gz
llvm-48b753027382a5815295d6680c7dd407be936c86.tar.bz2
[clang][flang][Triple][llvm] Add isOffload function to LangOpts and isGPU function to Triple (#126956)
I'm adding support for SPIR-V, so let's consolidate these checks. --------- Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 96ab4dd..5dbd50b 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -843,7 +843,7 @@ static void setVisibilityFromDLLStorageClass(const clang::LangOptions &LO,
static bool isStackProtectorOn(const LangOptions &LangOpts,
const llvm::Triple &Triple,
clang::LangOptions::StackProtectorMode Mode) {
- if (Triple.isAMDGPU() || Triple.isNVPTX())
+ if (Triple.isGPU())
return false;
return LangOpts.getStackProtector() == Mode;
}