diff options
| -rw-r--r-- | clang/lib/GR/SVals.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/GR/SVals.cpp b/clang/lib/GR/SVals.cpp index 1e583128ffc..0484b62f8aa 100644 --- a/clang/lib/GR/SVals.cpp +++ b/clang/lib/GR/SVals.cpp @@ -292,8 +292,11 @@ void NonLoc::dumpToStream(llvm::raw_ostream& os) const { switch (getSubKind()) { case nonloc::ConcreteIntKind: { const nonloc::ConcreteInt& C = *cast<nonloc::ConcreteInt>(this); - os << C.getValue().getZExtValue() - << ' ' << ((C.getValue().isUnsigned()) ? 'U' : 'S') + if (C.getValue().isUnsigned()) + os << C.getValue().getZExtValue(); + else + os << C.getValue().getSExtValue(); + os << ' ' << (C.getValue().isUnsigned() ? 'U' : 'S') << C.getValue().getBitWidth() << 'b'; break; } |

