1. Sep 23, 2016
  2. Sep 22, 2016
    • Zachary Turner's avatar
      Speculative fix for build failures due to consumeInteger. · d5d57635
      Zachary Turner authored
      A recent patch added support for consumeInteger() and made
      getAsInteger delegate to this function.  A few buildbots are
      failing as a result with an assertion failure.  On a hunch,
      I tested what happens if I call getAsInteger() on an empty
      string, and sure enough it crashes the same way that the
      buildbots are crashing.
      
      I confirmed that getAsInteger() on an empty string did not
      crash before my patch, so I suspect this to be the cause.
      
      I also added a unit test for the empty string.
      
      llvm-svn: 282170
      d5d57635