Skip to content

Commit

Permalink
[SYCL][NFC] Remove a compilation warning with GCC 8.2.0
Browse files Browse the repository at this point in the history
Parenthesize the boolean comparisons a little bit more to clarify
understanding.

Signed-off-by: Ronan Keryell <[email protected]>
  • Loading branch information
keryell authored and bader committed Feb 13, 2019
1 parent bae2b75 commit c4e068d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/Frontend/CompilerInvocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ CompilerInvocationBase::~CompilerInvocationBase() = default;
static unsigned getOptimizationLevel(ArgList &Args, InputKind IK,
DiagnosticsEngine &Diags) {
unsigned DefaultOpt = llvm::CodeGenOpt::None;
if (IK.getLanguage() == InputKind::OpenCL &&
!Args.hasArg(OPT_cl_opt_disable) || Args.hasArg(OPT_fsycl_is_device))
if ((IK.getLanguage() == InputKind::OpenCL &&
!Args.hasArg(OPT_cl_opt_disable)) || Args.hasArg(OPT_fsycl_is_device))
DefaultOpt = llvm::CodeGenOpt::Default;

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

0 comments on commit c4e068d

Please sign in to comment.