OSDN Git Service

[GVNSink] Pacify MSVC
authorJames Molloy <james.molloy@arm.com>
Thu, 25 May 2017 13:14:10 +0000 (13:14 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 25 May 2017 13:14:10 +0000 (13:14 +0000)
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

index a88c941..5c75f39 100644 (file)
@@ -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<Value*>(ID));
     return M;