[PATCH] D46541: [CodeGen] Improve diagnostics related to target attributes

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 21 10:37:36 PDT 2018


craig.topper added a comment.

I think you can pass StringRef(F).substr(1). That won't create a temporary string. It will just create a StringRef pointing into the middle of an existing std::string stored in the parsed attributes.


https://reviews.llvm.org/D46541





More information about the cfe-commits mailing list