[PATCH] [ms-cxxabi] Use inalloca on win32 when passing non-trivial C++ objects

David Majnemer david.majnemer at gmail.com
Mon Jan 27 16:24:50 PST 2014



================
Comment at: lib/CodeGen/CGCall.cpp:1155
@@ +1154,3 @@
+  case ABIArgInfo::InAlloca: {
+    // sret disables readnone and readonly
+    FuncAttrs.removeAttribute(llvm::Attribute::ReadOnly)
----------------
`sret` should be `inalloca`?


http://llvm-reviews.chandlerc.com/D2636



More information about the cfe-commits mailing list