================
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