Author: Nikita Popov Date: 2020-12-20T17:52:48+01:00 New Revision: 6fa1230594e06bcd32a94a5eeed60d9927a209c9
URL: https://github.com/llvm/llvm-project/commit/6fa1230594e06bcd32a94a5eeed60d9927a209c9 DIFF: https://github.com/llvm/llvm-project/commit/6fa1230594e06bcd32a94a5eeed60d9927a209c9.diff LOG: [MemLoc] Fix debug print for LocationSize Added: Modified: llvm/lib/Analysis/MemoryLocation.cpp Removed: ################################################################################ diff --git a/llvm/lib/Analysis/MemoryLocation.cpp b/llvm/lib/Analysis/MemoryLocation.cpp index 39c907002733..ef9cda37ce35 100644 --- a/llvm/lib/Analysis/MemoryLocation.cpp +++ b/llvm/lib/Analysis/MemoryLocation.cpp @@ -22,7 +22,7 @@ void LocationSize::print(raw_ostream &OS) const { OS << "LocationSize::"; if (*this == beforeOrAfterPointer()) OS << "beforeOrAfterPointer"; - if (*this == afterPointer()) + else if (*this == afterPointer()) OS << "afterPointer"; else if (*this == mapEmpty()) OS << "mapEmpty"; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits