diff --git a/clang/lib/Analysis/FlowSensitive/Value.cpp b/clang/lib/Analysis/FlowSensitive/Value.cpp index b069c1cd3da117..80dde7c8d58235 100644 --- a/clang/lib/Analysis/FlowSensitive/Value.cpp +++ b/clang/lib/Analysis/FlowSensitive/Value.cpp @@ -34,13 +34,18 @@ bool areEquivalentValues(const Value &Val1, const Value &Val2) { raw_ostream &operator<<(raw_ostream &OS, const Value &Val) { switch (Val.getKind()) { - case Value::Kind::Pointer: { - const auto *PV = dyn_cast(&Val); - return OS << "Pointer(" << &PV->getPointeeLoc() << ")"; - } - // FIXME: support remaining cases. - default: - return OS << debugString(Val.getKind()); + case Value::Kind::Integer: + return OS << "Integer(@" << &Val << ")"; + case Value::Kind::Pointer: + return OS << "Pointer(" << &cast(Val).getPointeeLoc() << ")"; + case Value::Kind::Record: + return OS << "Record(" << &cast(Val).getLoc() << ")"; + case Value::Kind::TopBool: + return OS << "TopBool(" << cast(Val).getAtom() << ")"; + case Value::Kind::AtomicBool: + return OS << "AtomicBool(" << cast(Val).getAtom() << ")"; + case Value::Kind::FormulaBool: + return OS << "FormulaBool(" << cast(Val).formula() << ")"; } }