[cfe-commits] r145905 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp
Eli Friedman
eli.friedman at gmail.com
Mon Dec 5 19:08:26 PST 2011
Author: efriedma
Date: Mon Dec 5 21:08:26 2011
New Revision: 145905
URL: http://llvm.org/viewvc/llvm-project?rev=145905&view=rev
Log:
Minor comment update.
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=145905&r1=145904&r2=145905&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Mon Dec 5 21:08:26 2011
@@ -988,7 +988,9 @@
// 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(),
More information about the cfe-commits
mailing list