aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/MemoryLocation.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-12-20 17:52:31 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-12-20 17:52:48 +0100
commit6fa1230594e06bcd32a94a5eeed60d9927a209c9 (patch)
tree83aae0a043279666cf62fa4c43efd61cb8579cb1 /llvm/lib/Analysis/MemoryLocation.cpp
parentd86a00d8febd0138a21f92d1420c4b62d7acb0ca (diff)
downloadllvm-6fa1230594e06bcd32a94a5eeed60d9927a209c9.zip
llvm-6fa1230594e06bcd32a94a5eeed60d9927a209c9.tar.gz
llvm-6fa1230594e06bcd32a94a5eeed60d9927a209c9.tar.bz2
[MemLoc] Fix debug print for LocationSize
Diffstat (limited to 'llvm/lib/Analysis/MemoryLocation.cpp')
-rw-r--r--llvm/lib/Analysis/MemoryLocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryLocation.cpp b/llvm/lib/Analysis/MemoryLocation.cpp
index 39c9070..ef9cda3 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";