Skip to content

Commit b4a0e50

Browse files
committed
[SYCL][NFC] Fix GCC warning about missing parentheses
clang/lib/CodeGen/CGException.cpp:721:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (LO.CUDA && LO.CUDAIsDevice || LO.SYCLIsDevice) ~~~~~~~~^~~~~~~~~~~~~~~~~~ Signed-off-by: Alexey Bader <[email protected]>
1 parent ddc1a7f commit b4a0e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGException.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ llvm::BasicBlock *CodeGenFunction::getInvokeDestImpl() {
718718
}
719719

720720
// CUDA and SYCL device code doesn't have exceptions.
721-
if (LO.CUDA && LO.CUDAIsDevice || LO.SYCLIsDevice)
721+
if ((LO.CUDA && LO.CUDAIsDevice) || LO.SYCLIsDevice)
722722
return nullptr;
723723

724724
// Check the innermost scope for a cached landing pad. If this is

0 commit comments

Comments
 (0)