1. 12 Oct, 2017 1 commit
    • Fix switch statement validation corner cases · 923ecef6
      Olli Etuaho authored
      The grammar needs to generate AST nodes even for no-op statements,
      since they might be the last statement in a switch statement that is
      required for switch statement validity. Change the grammar to generate
      nodes from empty blocks and empty declarations.
      
      We also need to do some further processing of the AST. This is because
      PruneEmptyDeclarations will still remove empty declarations, and at
      least the NVIDIA driver GLSL compiler doesn't accept some types of
      no-op statements as the last statement inside a switch statement. So
      after parsing has finished we do rudimentary dead code elimination to
      remove dead cases from the end of switch statements.
      
      BUG=angleproject:2181
      TEST=angle_unittests
      
      Change-Id: I586f2e4a3ac2171e65f1f0ccb7a7de220e3cc225
      Reviewed-on: https://chromium-review.googlesource.com/712574
      Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
      Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
  2. 11 Oct, 2017 6 commits
  3. 10 Oct, 2017 9 commits
  4. 09 Oct, 2017 1 commit
  5. 07 Oct, 2017 1 commit
  6. 06 Oct, 2017 3 commits
  7. 05 Oct, 2017 5 commits
  8. 04 Oct, 2017 7 commits
  9. 03 Oct, 2017 7 commits