[PATCH] D135513: [clang][Interp] Check instance pointers before calling functions on them

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 11 07:05:21 PDT 2022


tbaeder added inline comments.


================
Comment at: clang/lib/AST/Interp/Function.cpp:39
+  assert(It != SrcMap.end());
+  It--; // We want the offset *before* the given one.
   return It->second;
----------------
While I think the comment here is correct, the decrement itself certainly isn't.


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

https://reviews.llvm.org/D135513



More information about the cfe-commits mailing list