summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/CodeGen/CGCUDANV.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCUDANV.cpp b/clang/lib/CodeGen/CGCUDANV.cpp
index 913d58e0178..42d2b15a4ee 100644
--- a/clang/lib/CodeGen/CGCUDANV.cpp
+++ b/clang/lib/CodeGen/CGCUDANV.cpp
@@ -473,8 +473,8 @@ llvm::Function *CGNVCUDARuntime::makeModuleCtorFunction() {
StringRef CudaGpuBinaryFileName = CGM.getCodeGenOpts().CudaGpuBinaryFileName;
if (CudaGpuBinaryFileName.empty() && !IsHIP)
return nullptr;
- if ( (IsHIP || (IsCUDA && !RelocatableDeviceCode) )
- && EmittedKernels.empty() && DeviceVars.empty())
+ if ((IsHIP || (IsCUDA && !RelocatableDeviceCode)) && EmittedKernels.empty() &&
+ DeviceVars.empty())
return nullptr;
// void __{cuda|hip}_register_globals(void* handle);
OpenPOWER on IntegriCloud