[clang] [clang][Interp] Handle AttributedStmts (PR #66495)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 05:07:23 PDT 2023


================
@@ -628,6 +630,12 @@ bool ByteCodeStmtGen<Emitter>::visitAsmStmt(const AsmStmt *S) {
   return this->emitInvalid(S);
 }
 
+template <class Emitter>
+bool ByteCodeStmtGen<Emitter>::visitAttributedStmt(const AttributedStmt *S) {
+  // Ignore all attributes.
----------------
cor3ntin wrote:

We can add a fix me but i wouldn't worry about it too much, until we have a clearer idea of what we do, which we really don't atm
And the wording is clear that this is unspecified either way.

And for vendor attributes, it would only make sense to check them if we want them to fail the evaluation, do we have such things?

https://github.com/llvm/llvm-project/pull/66495


More information about the cfe-commits mailing list