@@ -118,7 +118,7 @@ static const uint64_t kNetBSD_ShadowOffset64 = 1ULL << 46;
118
118
static const uint64_t kNetBSDKasan_ShadowOffset64 = 0xdfff900000000000 ;
119
119
static const uint64_t kPS_ShadowOffset64 = 1ULL << 40 ;
120
120
static const uint64_t kWindowsShadowOffset32 = 3ULL << 28 ;
121
- static const uint64_t kEmscriptenShadowOffset = 0 ;
121
+ static const uint64_t kWebAssemblyShadowOffset = 0 ;
122
122
123
123
// The shadow memory space is dynamically allocated.
124
124
static const uint64_t kWindowsShadowOffset64 = kDynamicShadowSentinel ;
@@ -499,8 +499,8 @@ static ShadowMapping getShadowMapping(const Triple &TargetTriple, int LongSize,
499
499
bool IsRISCV64 = TargetTriple.getArch () == Triple::riscv64;
500
500
bool IsWindows = TargetTriple.isOSWindows ();
501
501
bool IsFuchsia = TargetTriple.isOSFuchsia ();
502
- bool IsEmscripten = TargetTriple.isOSEmscripten ();
503
502
bool IsAMDGPU = TargetTriple.isAMDGPU ();
503
+ bool IsWasm = TargetTriple.isWasm ();
504
504
505
505
ShadowMapping Mapping;
506
506
@@ -524,8 +524,8 @@ static ShadowMapping getShadowMapping(const Triple &TargetTriple, int LongSize,
524
524
Mapping.Offset = kDynamicShadowSentinel ;
525
525
else if (IsWindows)
526
526
Mapping.Offset = kWindowsShadowOffset32 ;
527
- else if (IsEmscripten )
528
- Mapping.Offset = kEmscriptenShadowOffset ;
527
+ else if (IsWasm )
528
+ Mapping.Offset = kWebAssemblyShadowOffset ;
529
529
else
530
530
Mapping.Offset = kDefaultShadowOffset32 ;
531
531
} else { // LongSize == 64
0 commit comments