Szelethus added a comment.

I think adding a better getter to `StackFrameContext` would make the patch a 
tad nicer, but other than that, I don't have much to add to this patch, 
unfortunately :) The code looks nice and we definitely need something like this.



================
Comment at: clang/lib/StaticAnalyzer/Core/CallEvent.cpp:552
+
+  Index = StackFrame->getIndex();
+
----------------
This mustn't be serious. `StackFrameContext::getIndex()` has **no comments** at 
all! So it is an index to the element within a `CFGBlock` to which it also 
stores a field for??? Ugh. Shouldn't we just have a `getCallSiteCFGElement` or 
something? Especially since we have `CFGElementRef`s now.

Would you be so nice to hunt this down please? :)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80366



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

Reply via email to