]> granicus.if.org Git - llvm/commitdiff
Merging r275879:
authorHans Wennborg <hans@hanshq.net>
Mon, 18 Jul 2016 20:48:17 +0000 (20:48 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 18 Jul 2016 20:48:17 +0000 (20:48 +0000)
------------------------------------------------------------------------
r275879 | rnk | 2016-07-18 11:53:50 -0700 (Mon, 18 Jul 2016) | 1 line

Fix -Wmicrosoft-enum-value in GVNHoist.cpp
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@275910 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVNHoist.cpp

index 92157df31bd6d82367cb31895bd49e3ad4f50dc8..c53263ac194c541026ab22c5dbef725515892537 100644 (file)
@@ -86,7 +86,7 @@ typedef DenseMap<std::pair<unsigned, unsigned>, SmallVector<Instruction *, 4>>
     VNtoInsns;
 // An invalid value number Used when inserting a single value number into
 // VNtoInsns.
-enum { InvalidVN = ~2U };
+enum : unsigned { InvalidVN = ~2U };
 
 // Records all scalar instructions candidate for code hoisting.
 class InsnInfo {