diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-06-22 23:07:26 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-06-22 23:07:26 +0000 |
commit | 49b4d734519559f3bd9cebf706cd35f27c1e2b3a (patch) | |
tree | 9e48a632248bd786e53b4312c96eb0846e6efa78 /clang/lib/Sema/SemaStmt.cpp | |
parent | 1081f1a0f518f3741bdefed2e51b80fb3a430098 (diff) | |
download | bcm5719-llvm-49b4d734519559f3bd9cebf706cd35f27c1e2b3a.tar.gz bcm5719-llvm-49b4d734519559f3bd9cebf706cd35f27c1e2b3a.zip |
Type Type::isRealFloatingType() that vectors are not floating-point
types, updating callers of both isFloatingType() and
isRealFloatingType() accordingly. Caught at least one issue where we
allowed one to declare a vector of vectors (!), along with cleaning up
the standard-conversion logic for C++.
llvm-svn: 106595
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 735b069b425..738fc55823b 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -1516,14 +1516,14 @@ Sema::OwningStmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc, if (InTy->isIntegerType() || InTy->isPointerType()) InputDomain = AD_Int; - else if (InTy->isFloatingType()) + else if (InTy->isRealFloatingType()) InputDomain = AD_FP; else InputDomain = AD_Other; if (OutTy->isIntegerType() || OutTy->isPointerType()) OutputDomain = AD_Int; - else if (OutTy->isFloatingType()) + else if (OutTy->isRealFloatingType()) OutputDomain = AD_FP; else OutputDomain = AD_Other; |