diff --git a/lib/Analysis/MemoryLocation.cpp b/lib/Analysis/MemoryLocation.cpp index 39c90700273..ef9cda37ce3 100644 --- a/lib/Analysis/MemoryLocation.cpp +++ b/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";