comparison gen/abi-x86-64.cpp @ 1049:afe271b0e271

Two small bugfixes: - See through typedefs and enums in passByVal - Don't depend on TypeFunction::parameters->dim being the actual number of parameters; it contains unexpanded tuples as single elements.
author Frits van Bommel <fvbommel wxs.nl>
date Fri, 06 Mar 2009 19:12:48 +0100
parents f9333daa1bf5
children dc608dc33081
comparison
equal deleted inserted replaced
1048:f9333daa1bf5 1049:afe271b0e271
561 return cl.isMemory; 561 return cl.isMemory;
562 } 562 }
563 } 563 }
564 564
565 bool X86_64TargetABI::passByVal(Type* t) { 565 bool X86_64TargetABI::passByVal(Type* t) {
566 t = t->toBasetype();
566 if (linkage() == LINKd) { 567 if (linkage() == LINKd) {
567 if (t->ty != Tstruct) 568 if (t->ty != Tstruct)
568 return false; 569 return false;
569 570
570 // Try to be smart about which structs are passed in memory. 571 // Try to be smart about which structs are passed in memory.