summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
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
commit0b73ccfe20166a2ef0843d9e49892dc2300e9f44 (patch)
tree39b80eb236f3b67d7fbfa76a588e1bc1207c9965 /clang/lib/Sema/SemaChecking.cpp
parentea9ae3e6edbc9dece562333204d1a11fd1b5bea7 (diff)
downloadbcm5719-llvm-0b73ccfe20166a2ef0843d9e49892dc2300e9f44.tar.gz
bcm5719-llvm-0b73ccfe20166a2ef0843d9e49892dc2300e9f44.zip
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. llvm-svn: 108004
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 6a818bd5757..217ada01c6b 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/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!");
OpenPOWER on IntegriCloud