[llvm] r288798 - Fix MSVC -Wmicrosoft-enum-value 'enumerator value is not representable' warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 03:27:19 PST 2016
Author: rksimon
Date: Tue Dec 6 05:27:19 2016
New Revision: 288798
URL: http://llvm.org/viewvc/llvm-project?rev=288798&view=rev
Log:
Fix MSVC -Wmicrosoft-enum-value 'enumerator value is not representable' warning
Modified:
llvm/trunk/include/llvm/IR/GetElementPtrTypeIterator.h
Modified: llvm/trunk/include/llvm/IR/GetElementPtrTypeIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/GetElementPtrTypeIterator.h?rev=288798&r1=288797&r2=288798&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/GetElementPtrTypeIterator.h (original)
+++ llvm/trunk/include/llvm/IR/GetElementPtrTypeIterator.h Tue Dec 6 05:27:19 2016
@@ -34,7 +34,7 @@ namespace llvm {
ItTy OpIt;
PointerUnion<StructType *, Type *> CurTy;
- enum { Unbounded = -1ull };
+ enum : uint64_t { Unbounded = -1ull };
uint64_t NumElements = Unbounded;
generic_gep_type_iterator() = default;
More information about the llvm-commits
mailing list