diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-12-06 03:08:26 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-12-06 03:08:26 +0000 |
commit | b8e45b28da8166eefeaa664e7c8096d2ae741ce2 (patch) | |
tree | 3e26cf815e0235a293a5cb3bc767fa99946eaadc /clang/lib/CodeGen/TargetInfo.cpp | |
parent | e5e1b88bbcf4288d671da42c2c9bfc113d843e1f (diff) | |
download | bcm5719-llvm-b8e45b28da8166eefeaa664e7c8096d2ae741ce2.tar.gz bcm5719-llvm-b8e45b28da8166eefeaa664e7c8096d2ae741ce2.zip |
Minor comment update.
llvm-svn: 145905
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 16d22dd53cb..99cd579d4a0 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -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(), |