]> granicus.if.org Git - clang/commitdiff
fix i128 to return in 2 64-bit registers (rax/rdx on x86-64)
authorChris Lattner <sabre@nondot.org>
Thu, 30 Apr 2009 06:22:07 +0000 (06:22 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 30 Apr 2009 06:22:07 +0000 (06:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70481 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp

index a6439fcb03641342b0cf4ceb64ede76b93264deb..27322525bb2ac36291dd325dc98df6acb0fdd0fe 100644 (file)
@@ -641,8 +641,8 @@ void X86_64ABIInfo::classify(QualType Ty,
     if (k == BuiltinType::Void) {
       Current = NoClass; 
     } else if (k == BuiltinType::Int128 || k == BuiltinType::UInt128) {
-      Lo = Memory;
-      Hi = Memory;
+      Lo = Integer;
+      Hi = Integer;
     } else if (k >= BuiltinType::Bool && k <= BuiltinType::LongLong) {
       Current = Integer;
     } else if (k == BuiltinType::Float || k == BuiltinType::Double) {