Skip to content

Commit 51547db

Browse files
committed
rename MemoryMapParams
1 parent a3384cf commit 51547db

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ static const MemoryMapParams NetBSD_X86_64_MemoryMapParams = {
485485
0x100000000000, // OriginBase
486486
};
487487

488+
// SPIR64 Intel
489+
static const MemoryMapParams Intel_SPIR64_MemoryMapParams = {
490+
0, // AndMask
491+
0, // XorMask
492+
0, // ShadowBase
493+
0, // OriginBase
494+
};
495+
488496
static const PlatformMemoryMapParams Linux_X86_MemoryMapParams = {
489497
&Linux_I386_MemoryMapParams,
490498
&Linux_X86_64_MemoryMapParams,
@@ -530,17 +538,9 @@ static const PlatformMemoryMapParams NetBSD_X86_MemoryMapParams = {
530538
&NetBSD_X86_64_MemoryMapParams,
531539
};
532540

533-
// SPIR Linux
534-
static const MemoryMapParams Intel_SPIR_MemoryMapParams = {
535-
0, // AndMask
536-
0, // XorMask (not used)
537-
0, // ShadowBase (not used)
538-
0, // OriginBase
539-
};
540-
541-
static const PlatformMemoryMapParams Intel_GFX_MemoryMapParams = {
541+
static const PlatformMemoryMapParams Intel_SPIR_MemoryMapParams = {
542542
nullptr,
543-
&Intel_SPIR_MemoryMapParams,
543+
&Intel_SPIR64_MemoryMapParams,
544544
};
545545

546546
// Spir memory address space
@@ -1158,7 +1158,7 @@ void MemorySanitizer::initializeModule(Module &M) {
11581158
// NOTE: Support SPIR or SPIRV only, without MapParams
11591159
if (!TargetTriple.isSPIROrSPIRV())
11601160
report_fatal_error("unsupported architecture");
1161-
MapParams = Intel_GFX_MemoryMapParams.bits64;
1161+
MapParams = Intel_SPIR_MemoryMapParams.bits64;
11621162
break;
11631163
default:
11641164
report_fatal_error("unsupported operating system");

0 commit comments

Comments
 (0)