diff options
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/TargetABIInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/TargetABIInfo.cpp b/clang/lib/CodeGen/TargetABIInfo.cpp index 1dd88bb4812..c403960580a 100644 --- a/clang/lib/CodeGen/TargetABIInfo.cpp +++ b/clang/lib/CodeGen/TargetABIInfo.cpp @@ -1430,6 +1430,10 @@ static bool isIntegerLikeType(QualType Ty, if (Ty->isVectorType()) return false; + // Float types are never treated as "integer like". + if (Ty->isRealFloatingType()) + return false; + // If this is a builtin or pointer type then it is ok. if (Ty->getAsBuiltinType() || Ty->isPointerType()) return true; |