[PATCH] D60943: Delay diagnosing "n" constraint until after inlining

Bill Wendling via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 17:31:29 PDT 2019


void added a comment.

Here's the motivating bug report: https://bugs.llvm.org/show_bug.cgi?id=41027

In general, I agree with you that diagnostics shouldn't depend on optimization levels, but inline assembly subverts this paradigm because it was originally a gcc extension. :-( That said, I don't know if looking at the `always_inline` attribute would work. I'll let @joerg and others comment on that.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60943/new/

https://reviews.llvm.org/D60943





More information about the cfe-commits mailing list