From 0e61efc58f3f2a29c3018f008bc57e52535e8e13 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Fri, 23 Feb 2018 18:56:42 +0000 Subject: [PATCH] [MemorySSA] Use fewer magic numbers. NFC 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Analysis/MemorySSA.h b/llvm/include/llvm/Analysis/MemorySSA.h index 08f0bdc..b382e9a 100644 --- a/llvm/include/llvm/Analysis/MemorySSA.h +++ b/llvm/include/llvm/Analysis/MemorySSA.h @@ -331,7 +331,7 @@ protected: private: static void deleteMe(DerivedUser *Self); - unsigned int OptimizedID = 0; + unsigned OptimizedID = INVALID_MEMORYACCESS_ID; }; template <> -- 2.7.4