aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSindhu Chittireddy <sindhu.chittireddy@intel.com>2023-07-12 11:01:19 -0700
committerSindhu Chittireddy <sindhu.chittireddy@intel.com>2023-07-20 23:33:33 -0700
commit2ce662c5d5969255b6779eafe4b309dc57e2d3a6 (patch)
tree218253147eb9c61ffd5c1c3b096966de92efa374 /clang/lib/CodeGen/CodeGenModule.cpp
parent822c31a0fe827a6f33601ad6b44eb2818350da36 (diff)
downloadllvm-2ce662c5d5969255b6779eafe4b309dc57e2d3a6.zip
llvm-2ce662c5d5969255b6779eafe4b309dc57e2d3a6.tar.gz
llvm-2ce662c5d5969255b6779eafe4b309dc57e2d3a6.tar.bz2
[NFC] Remove needless nullchecks.
Differential Revision: https://reviews.llvm.org/D155774
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 2d0d40b..ef49349 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -5234,7 +5234,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D,
// Is accessible from all the threads within the grid and from the host
// through the runtime library (cudaGetSymbolAddress() / cudaGetSymbolSize()
// / cudaMemcpyToSymbol() / cudaMemcpyFromSymbol())."
- if (GV && LangOpts.CUDA) {
+ if (LangOpts.CUDA) {
if (LangOpts.CUDAIsDevice) {
if (Linkage != llvm::GlobalValue::InternalLinkage &&
(D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>() ||