[PATCH] D15647: [X86] Fix stack alignment for MCU target (Clang part)

John McCall via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 27 23:05:44 PST 2015

rjmccall added inline comments.

Comment at: tools/clang/lib/AST/ASTContext.cpp:1902
@@ +1901,3 @@
+  if (Target->getTriple().getArch() == llvm::Triple::xcore ||
+      Target->getTriple().isOSIAMCU())
+    return ABIAlign;  // Never overalign on XCore and IAMCU.
Please turn this into a method or flag on TargetInfo.  I suggest
  bool AllowLargerPreferredTypeAlignment;


More information about the cfe-commits mailing list