]> granicus.if.org Git - clang/commitdiff
[Sema] Specify the underlying type for an enum. NFC.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 29 Apr 2016 21:32:53 +0000 (21:32 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 29 Apr 2016 21:32:53 +0000 (21:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268113 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 405a66f3b23afba91b5809681ce18d341735a2ea..0b36fef144496109bf8168bd265eb23bb74a63e0 100644 (file)
@@ -7257,7 +7257,7 @@ class BuiltinOperatorOverloadBuilder {
     // (we could precompute SLL x UI for all known platforms, but it's
     // better not to make any assumptions).
     // We assume that int128 has a higher rank than long long on all platforms.
-    enum PromotedType {
+    enum PromotedType : int8_t {
             Dep=-1,
             Flt,  Dbl, LDbl,   SI,   SL,  SLL, S128,   UI,   UL,  ULL, U128
     };