From 564fd62aedfde6358baa1776a2de975b45bc7778 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Thu, 24 Oct 2024 11:05:39 -0700 Subject: [PATCH] [FlowSensitive] Allow to dump nested RecordStorageLocation (#112457) We have an internal analysis that uses them, and the HTML dump would fail on the assertion. --- clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp b/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp index a36cb41a63dfb1..557df218837941 100644 --- a/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp +++ b/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp @@ -133,8 +133,7 @@ class ModelDumper { for (const auto &Child : RLoc->children()) JOS.attributeObject("f:" + Child.first->getNameAsString(), [&] { if (Child.second) - if (Value *Val = Env.getValue(*Child.second)) - dump(*Val); + dump(*Child.second); }); for (const auto &SyntheticField : RLoc->synthetic_fields())