tbaeder 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;
----------------
aaron.ballman wrote:
> What about other kinds of declarations, such as typedefs or functions?
> ```
> typedef int foo, bar;
> extern int a(), b();
> ```
> (and so on)
That's a good question, I added these now because I ran into them, but my 
follow-up question would've indeed been "what others are there?" :)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145861

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to