summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2017-05-25 13:14:10 +0000
committerJames Molloy <james.molloy@arm.com>2017-05-25 13:14:10 +0000
commitdc2d64bc35d5dfb3e388222eebdb4d5fe4496ca3 (patch)
treea03d133fcf16ff362ebd4cd49b3b44d7c8f4b618 /llvm/lib/Transforms
parente8cd2cca91bb6fe7cf0b40d4640605d4116f8bef (diff)
downloadbcm5719-llvm-dc2d64bc35d5dfb3e388222eebdb4d5fe4496ca3.tar.gz
bcm5719-llvm-dc2d64bc35d5dfb3e388222eebdb4d5fe4496ca3.zip
[GVNSink] Pacify MSVC
Don't convert an unsigned to a pointer for a sentinel, use a size_t instead. llvm-svn: 303855
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/GVNSink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVNSink.cpp b/llvm/lib/Transforms/Scalar/GVNSink.cpp
index a88c9412cd8..5c75f39e381 100644
--- a/llvm/lib/Transforms/Scalar/GVNSink.cpp
+++ b/llvm/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<Value*>(ID));
return M;
OpenPOWER on IntegriCloud