aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-07-09 19:19:40 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-07-09 19:19:40 +0000
commit7479ef6b5dd4903a7d832b4a4207045d7005a812 (patch)
treecaade95e68b634c65d9f28acc6af4909d203c9c9
parentd201457cc781f1b13d0f4b1268ff934e6004cbff (diff)
Rip out the floating point return type handling from the atomic builtin. It's
wrong, and we don't handle floating point value type arguments yet anyways. Will add correct logic for both when I finish the patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108004 91177308-0d34-0410-b5e6-96231b3b80d8
-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!");