Skip to content

Commit

Permalink
Make boolean clearer
Browse files Browse the repository at this point in the history
Signed-off-by: Lu, John <[email protected]>
  • Loading branch information
LU-JOHN committed Jul 16, 2024
1 parent e1ec258 commit a903f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/SYCLLowerIR/ModuleSplitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ bool canBeImportedFunction(const Function &F) {
// will be considered as SYCL_EXTERNAL for the purposes of
// this function.
if (F.isIntrinsic() || F.getName().starts_with("__") ||
!(F.isDeclaration() || llvm::sycl::utils::isSYCLExternalFunction(&F)))
(!F.isDeclaration() && !llvm::sycl::utils::isSYCLExternalFunction(&F)))
return false;

bool ReturnValue = true;
Expand Down

0 comments on commit a903f6b

Please sign in to comment.