Skip to content

Commit 3fcaded

Browse files
Revert == nullptr check to !
1 parent 3a2047c commit 3fcaded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/plugins-nextgen/common/src/GlobalHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void GPUProfGlobals::dump() const {
273273
}
274274

275275
Error GPUProfGlobals::write() const {
276-
if (__llvm_write_custom_profile == nullptr)
276+
if (!__llvm_write_custom_profile)
277277
return Plugin::error("Could not find symbol __llvm_write_custom_profile. "
278278
"The compiler-rt profiling library must be linked for "
279279
"GPU PGO to work.");

0 commit comments

Comments
 (0)