[clang] [clang][Interp] Handle AttributedStmts (PR #66495)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 15 10:36:49 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:
I'm sitting in core, which is a good time to mention https://wg21.link/cwg2763 - `[[assume]]` is not the only UB standard attribute - but it requires a specific handling so it is also orthogonal to this patch
https://github.com/llvm/llvm-project/pull/66495
More information about the cfe-commits
mailing list