Skip to content

Commit 3e04402

Browse files
committed
only init once
1 parent 27173c1 commit 3e04402

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,7 @@ ur_result_t SanitizerInterceptor::prepareLaunch(
711711
// We use "uint64_t" here because EnqueueWriteGlobal will fail when it's "uint32_t"
712712
// Because EnqueueWriteGlobal is a async write, so
713713
// we need to extend its lifetime
714-
static uint64_t Debug;
715-
Debug = Options(logger).Debug ? 1 : 0;
714+
static uint64_t Debug = Options(logger).Debug ? 1 : 0;
716715
EnqueueWriteGlobal(kSPIR_AsanDebug, &Debug, sizeof(Debug));
717716

718717
// Write shadow memory offset for global memory

0 commit comments

Comments
 (0)