aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r--lib/Sema/SemaChecking.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index 6a818bd575..217ada01c6 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -570,13 +570,12 @@ Sema::SemaBuiltinAtomicOverloaded(OwningExprResult TheCallResult) {
assert(ValType->isIntegerType() &&
"We always convert atomic operation values to integers.");
+ // FIXME: Handle floating point value type here too.
CastExpr::CastKind Kind;
if (OrigValType->isIntegerType())
Kind = CastExpr::CK_IntegralCast;
else if (OrigValType->hasPointerRepresentation())
Kind = CastExpr::CK_IntegralToPointer;
- else if (OrigValType->isRealFloatingType())
- Kind = CastExpr::CK_IntegralToFloating;
else
llvm_unreachable("Unhandled original value type!");