Skip to content

Commit c4e068d

Browse files
keryellbader
authored andcommitted
[SYCL][NFC] Remove a compilation warning with GCC 8.2.0
Parenthesize the boolean comparisons a little bit more to clarify understanding. Signed-off-by: Ronan Keryell <[email protected]>
1 parent bae2b75 commit c4e068d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ CompilerInvocationBase::~CompilerInvocationBase() = default;
122122
static unsigned getOptimizationLevel(ArgList &Args, InputKind IK,
123123
DiagnosticsEngine &Diags) {
124124
unsigned DefaultOpt = llvm::CodeGenOpt::None;
125-
if (IK.getLanguage() == InputKind::OpenCL &&
126-
!Args.hasArg(OPT_cl_opt_disable) || Args.hasArg(OPT_fsycl_is_device))
125+
if ((IK.getLanguage() == InputKind::OpenCL &&
126+
!Args.hasArg(OPT_cl_opt_disable)) || Args.hasArg(OPT_fsycl_is_device))
127127
DefaultOpt = llvm::CodeGenOpt::Default;
128128

129129
if (Arg *A = Args.getLastArg(options::OPT_O_Group)) {

0 commit comments

Comments
 (0)