[MemorySSA] Use fewer magic numbers. NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 23 Feb 2018 18:56:42 +0000 (18:56 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 23 Feb 2018 18:56:42 +0000 (18:56 +0000)
INVALID_MEMORYACCESS_ID == 0.

This patch also makes this initialization consistent with the rest of
the "invalid" ones in this file.

llvm-svn: 325935

llvm/include/llvm/Analysis/MemorySSA.h

index 08f0bdc..b382e9a 100644 (file)
@@ -331,7 +331,7 @@ protected:
 private:
   static void deleteMe(DerivedUser *Self);
 
-  unsigned int OptimizedID = 0;
+  unsigned OptimizedID = INVALID_MEMORYACCESS_ID;
 };
 
 template <>