<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 06/08/2015 02:37 PM, Reid Kleckner
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACs=tyJ7Bh_0Ae4pzaKYEN9idtkNE_M+67YG2k+LvcJPgG-sow@mail.gmail.com"
      type="cite">This broke the Windows self-host:
      <div><a moz-do-not-send="true" href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_builders_clang-2Dx86-2Dwin2008-2Dselfhost_builds_1279&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=wvRk4Qo2adICWx2DUmuvu-pyljp9h8jFbBQh7Aoc14o&s=IT5Xmtut10w09rRJIX2o4FijAav8odulOazQIck8zpA&e=">http://lab.llvm.org:8011/builders/clang-x86-win2008-selfhost/builds/1279</a><br>
      </div>
      <div><br>
      </div>
      <div><span style="font-size:12.8000001907349px">+  // Some places
          use this if the address space can't be determined.</span><br
          style="font-size:12.8000001907349px">
        <span style="font-size:12.8000001907349px">+ 
          UNKNOWN_ADDRESS_SPACE = ~0u</span><br>
      </div>
      <div><span style="font-size:12.8000001907349px"><br>
        </span></div>
      <div><span style="font-size:12.8000001907349px">On Windows, enums
          are always ints unless you say otherwise, so clang-cl gave us
          this:</span></div>
      <div><span style="font-size:12.8000001907349px"><br>
        </span></div>
      <div>
        <div style=""><span style="font-size:12.8000001907349px">..\lib\Target\R600/AMDGPU.h(143,3)
            :  warning: enumerator value is not representable in the
            underlying type 'int' [-Wmicrosoft]</span></div>
        <div style=""><span style="font-size:12.8000001907349px"> 
            UNKNOWN_ADDRESS_SPACE = ~0u</span></div>
        <div style=""><span style="font-size:12.8000001907349px">  ^</span></div>
        <div style=""><span style="font-size:12.8000001907349px">..\lib\Target\R600\SIISelLowering.cpp(263,8)

            :  error: case value evaluates to -1, which cannot be
            narrowed to type 'unsigned int' [-Wc++11-narrowing]</span></div>
        <div style=""><span style="font-size:12.8000001907349px">  case
            AMDGPUAS::UNKNOWN_ADDRESS_SPACE: {</span></div>
        <div style=""><span style="font-size:12.8000001907349px">     
             ^</span></div>
      </div>
    </blockquote>
    Can we use the C++11 feature to specify the enum type?<br>
  </body>
</html>