diff options
author | Chris Lattner <sabre@nondot.org> | 2010-08-26 18:03:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-08-26 18:03:20 +0000 |
commit | 473f8e723be93d84bd5fd15b094f4184802d4676 (patch) | |
tree | 4b752424c464c54c78e1d12ad5dd654cd4d1b8b8 /lib/CodeGen/TargetInfo.cpp | |
parent | cebc3769077bb22003dc47bd22868d0b4c6ce106 (diff) |
1 x ulonglong needs to be classified as INTEGER, just like 1 x longlong,
this fixes a miscompilation on the included testcase, rdar://8359248
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112201 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 78d7925a90..04faaead2a 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -893,7 +893,8 @@ void X86_64ABIInfo::classify(QualType Ty, uint64_t OffsetBase, return; // gcc passes <1 x long long> as INTEGER. - if (VT->getElementType()->isSpecificBuiltinType(BuiltinType::LongLong)) + if (VT->getElementType()->isSpecificBuiltinType(BuiltinType::LongLong) || + VT->getElementType()->isSpecificBuiltinType(BuiltinType::ULongLong)) Current = Integer; else Current = SSE; |