Skip to content

Commit 577db07

Browse files
author
git apple-llvm automerger
committed
Merge commit '18f7655178a6' from llvm.org/main into next
2 parents b68ba23 + 18f7655 commit 577db07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Basic/Targets/OSTargets.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ class LLVM_LIBRARY_VISIBILITY EmscriptenTargetInfo
10051005
// Emscripten's ABI is unstable and we may change this back to 128 to match
10061006
// the WebAssembly default in the future.
10071007
this->LongDoubleAlign = 64;
1008+
this->Float128Align = 64;
10081009
}
10091010
};
10101011

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,7 @@ static void checkDataLayoutConsistency(const TargetInfo &Target,
388388
llvm::Type::getFloatingPointTy(Context, *Target.LongDoubleFormat),
389389
Target.LongDoubleAlign);
390390
}
391-
// FIXME: Wasm has a mismatch in f128 alignment between Clang and LLVM.
392-
if (Target.hasFloat128Type() && !Triple.isWasm())
391+
if (Target.hasFloat128Type())
393392
Check("__float128", llvm::Type::getFP128Ty(Context), Target.Float128Align);
394393
if (Target.hasIbm128Type())
395394
Check("__ibm128", llvm::Type::getPPC_FP128Ty(Context), Target.Ibm128Align);

0 commit comments

Comments
 (0)