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
This commit is contained in:
Chandler Carruth 2010-07-09 19:19:40 +00:00
parent ea9ae3e6ed
commit 0b73ccfe20
1 changed files with 1 additions and 2 deletions

View File

@ -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!");