diff options
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 2007f01c2ad..35d7030a250 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -6994,6 +6994,7 @@ public: LargeArrayMinWidth = 128; LargeArrayAlign = 128; SimdDefaultAlign = 128; + SigAtomicType = SignedLong; } protected: @@ -7096,8 +7097,7 @@ class WebAssembly32TargetInfo : public WebAssemblyTargetInfo { public: explicit WebAssembly32TargetInfo(const llvm::Triple &T) : WebAssemblyTargetInfo(T) { - // TODO: Set this to the correct value once the spec issues are resolved. - MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 0; + MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 32; DataLayoutString = "e-p:32:32-i64:64-n32:64-S128"; } @@ -7115,8 +7115,7 @@ public: : WebAssemblyTargetInfo(T) { LongAlign = LongWidth = 64; PointerAlign = PointerWidth = 64; - // TODO: Set this to the correct value once the spec issues are resolved. - MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 0; + MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64; DataLayoutString = "e-p:64:64-i64:64-n32:64-S128"; } |