================
@@ -198,36 +198,35 @@ void Environment::printJson(raw_ostream &Out, const
ASTContext &Ctx,
}
++Space;
- if (!LCtx) {
+ if (!SF) {
// Find the freshest location context.
- llvm::SmallPtrSet<const LocationContext *, 16> FoundContexts;
+ llvm::SmallPtrSet<const StackFrame *, 16> FoundStackFrames;
for (const auto &I : *this) {
- const LocationContext *LC = I.first.getLocationContext();
- if (FoundContexts.count(LC) == 0) {
+ const StackFrame *currentSF = I.first.getStackFrame();
+ if (FoundStackFrames.count(currentSF) == 0) {
// This context is fresher than all other contexts so far.
----------------
NagyDonat wrote:
Replace "location context" with "stack frame" in these comments.
https://github.com/llvm/llvm-project/pull/198211
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits