Skip to content

Commit 212f9d9

Browse files
committed
Updates after review.
1 parent 0b4ee03 commit 212f9d9

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
@@ -1404,9 +1404,9 @@ RValue AtomicInfo::convertAtomicTempToRValue(Address addr,
14041404
}
14051405

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

0 commit comments

Comments
 (0)