diff options
Diffstat (limited to 'include/llvm/ADT/UniqueVector.h')
-rw-r--r-- | include/llvm/ADT/UniqueVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/UniqueVector.h b/include/llvm/ADT/UniqueVector.h index 76e8e0b72a..b114b8231e 100644 --- a/include/llvm/ADT/UniqueVector.h +++ b/include/llvm/ADT/UniqueVector.h @@ -41,7 +41,7 @@ public: if (Val) return Val; // Compute ID for entry. - Val = Vector.size() + 1; + Val = static_cast<unsigned>(Vector.size()) + 1; // Insert in vector. Vector.push_back(Entry); |