Skip to content

Commit 50ff6af

Browse files
committed
Updates after review.
1 parent ea3c2d0 commit 50ff6af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/CodeGen/CGAtomic.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,9 +1402,9 @@ RValue AtomicInfo::convertAtomicTempToRValue(Address addr,
14021402
}
14031403

14041404
static bool shouldCastToInt(llvm::Type *ValTy, bool CmpXchg) {
1405-
// TODO: Also pass through non-ieee FP types.
1406-
bool KeepType = (ValTy->isIntegerTy() || ValTy->isPointerTy() ||
1407-
(ValTy->isIEEELikeFPTy() && !CmpXchg));
1405+
bool KeepType =
1406+
(ValTy->isIntegerTy() || ValTy->isPointerTy() ||
1407+
(ValTy->isFloatingPointTy() && !ValTy->isX86_FP80Ty() && !CmpXchg));
14081408
return !KeepType;
14091409
}
14101410

0 commit comments

Comments
 (0)