]> granicus.if.org Git - clang/commitdiff
Minor comment update.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 6 Dec 2011 03:08:26 +0000 (03:08 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 6 Dec 2011 03:08:26 +0000 (03:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145905 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index 16d22dd53cb04e389dd2e45bbe82c4b366f7993b..99cd579d4a0eb8ba19e4301ff9b669c6289542be 100644 (file)
@@ -988,7 +988,9 @@ public:
     // The default CC on x86-64 sets %al to the number of SSA
     // registers used, and GCC sets this when calling an unprototyped
     // function, so we override the default behavior.  However, don't do
-    // that when AVX types are involved.
+    // that when AVX types are involved: the ABI explicitly states it is
+    // undefined, and it doesn't work in practice because of how the ABI
+    // defines varargs anyway.
     if (FI.getCallingConvention() == llvm::CallingConv::C) {
       bool HasAVXType = false;
       for (CGFunctionInfo::const_arg_iterator it = FI.arg_begin(),