diff options
| author | Sindhu Chittireddy <sindhu.chittireddy@intel.com> | 2023-07-12 11:01:19 -0700 |
|---|---|---|
| committer | Sindhu Chittireddy <sindhu.chittireddy@intel.com> | 2023-07-20 23:33:33 -0700 |
| commit | 2ce662c5d5969255b6779eafe4b309dc57e2d3a6 (patch) | |
| tree | 218253147eb9c61ffd5c1c3b096966de92efa374 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 822c31a0fe827a6f33601ad6b44eb2818350da36 (diff) | |
[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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 2d0d40b19948..ef49349053b9 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>() || |
