Skip to content

Commit

Permalink
strstr returns a pointer on success
Browse files Browse the repository at this point in the history
  • Loading branch information
jchlanda committed Jul 12, 2024
1 parent e6169ce commit 5385ad5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ bool SYCLSpecConstMaterializer::readMetadata() {
PreservedAnalyses SYCLSpecConstMaterializer::run(Function &F,
FunctionAnalysisManager &) {
if (const char *DebugEnv = std::getenv("SYCL_JIT_COMPILER_DEBUG"))
if (0 == strstr(DebugEnv, DEBUG_TYPE)) {
if (strstr(DebugEnv, DEBUG_TYPE)) {
DebugFlag = true;
llvm::setCurrentDebugType(DEBUG_TYPE);
}
Expand Down

0 comments on commit 5385ad5

Please sign in to comment.