From ac73777f2eb8594a067cc2c9d36cdfec9b925c08 Mon Sep 17 00:00:00 2001 From: James Molloy Date: Thu, 25 May 2017 13:14:10 +0000 Subject: [PATCH] [GVNSink] Pacify MSVC Don't convert an unsigned to a pointer for a sentinel, use a size_t instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303855 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GVNSink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/GVNSink.cpp b/lib/Transforms/Scalar/GVNSink.cpp index a88c9412cd8..5c75f39e381 100644 --- a/lib/Transforms/Scalar/GVNSink.cpp +++ b/lib/Transforms/Scalar/GVNSink.cpp @@ -207,7 +207,7 @@ public: /// Create a dummy ModelledPHI that will compare unequal to any other ModelledPHI /// without the same ID. /// \note This is specifically for DenseMapInfo - do not use this! - static ModelledPHI createDummy(unsigned ID) { + static ModelledPHI createDummy(size_t ID) { ModelledPHI M; M.Values.push_back(reinterpret_cast(ID)); return M; -- 2.11.4.GIT