]> granicus.if.org Git - clang/commitdiff
update comment
authorDerek Schuff <dschuff@google.com>
Wed, 24 Jun 2015 22:36:38 +0000 (22:36 +0000)
committerDerek Schuff <dschuff@google.com>
Wed, 24 Jun 2015 22:36:38 +0000 (22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240601 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index 4268f00459320a31b7c331bd04d0d175a660dc7b..d7a6349047bcd566979d0b7ad501c693cd187caa 100644 (file)
@@ -2498,8 +2498,10 @@ GetX86_64ByValArgumentPair(llvm::Type *Lo, llvm::Type *Hi,
   // of the second element because it might make us access off the end of the
   // struct.
   if (HiStart != 8) {
-    // There are only two sorts of types the ABI generation code can produce for
-    // the low part of a pair that aren't 8 bytes in size: float or i8/i16/i32.
+    // There are usually two sorts of types the ABI generation code can produce
+    // for the low part of a pair that aren't 8 bytes in size: float or
+    // i8/i16/i32.  This can also include pointers when they are 32-bit (X32 and
+    // NaCl).
     // Promote these to a larger type.
     if (Lo->isFloatTy())
       Lo = llvm::Type::getDoubleTy(Lo->getContext());