[llvm-branch-commits] [llvm] 6fa1230 - [MemLoc] Fix debug print for LocationSize

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Dec 20 08:57:43 PST 2020


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";


        


More information about the llvm-branch-commits mailing list