[PATCH] D136815: [clang][Interp] Unify visiting variable declarations

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 20 14:25:41 PST 2022


shafik accepted this revision.
shafik added a comment.

LGTM



================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1218
+    auto GlobalIndex = P.getGlobal(VD);
+    assert(GlobalIndex); // visitVarDecl() didn't return false.
+    if (!this->emitGetPtrGlobal(*GlobalIndex, VD))
----------------
I don't get the comment.


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

https://reviews.llvm.org/D136815



More information about the cfe-commits mailing list