[PATCH] D145861: [clang][Interp] Ignore more non-VarDecl declarations

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 13 05:47:40 PDT 2023


aaron.ballman added inline comments.


================
Comment at: clang/lib/AST/Interp/ByteCodeStmtGen.cpp:224
   for (auto *D : DS->decls()) {
-    if (isa<StaticAssertDecl>(D))
+    if (isa<StaticAssertDecl, RecordDecl, EnumDecl>(D))
       continue;
----------------
What about other kinds of declarations, such as typedefs or functions?
```
typedef int foo, bar;
extern int a(), b();
```
(and so on)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145861



More information about the cfe-commits mailing list