Skip to content

Commit 266c12a

Browse files
committed
[clang][dataflow] When dumping ExprToVal, dump the Value, not just its location.
This makes `ExprToVal` dumping consistent with `LocToVal` dumping. Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D159274
1 parent e2e6846 commit 266c12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ void Environment::dump(raw_ostream &OS) const {
918918

919919
OS << "ExprToVal:\n";
920920
for (auto [E, V] : ExprToVal)
921-
OS << " [" << E << ", " << V << "]\n";
921+
OS << " [" << E << ", " << V << ": " << *V << "]\n";
922922

923923
OS << "LocToVal:\n";
924924
for (auto [L, V] : LocToVal) {

0 commit comments

Comments
 (0)