1. 03 Oct, 2016 1 commit
    • Ensure that all functions have a body node in the AST · f51fdd2e
      Olli Etuaho authored
      Some traversers that insert code to main() assume that the main()
      function has a non-null body node in place. This assumption was
      previously wrong, since functions could be missing the body node
      in case the function body was empty.
      
      Fix possible invalid dereferencing of missing function body nodes by
      always adding an empty sequence node to represent the body of
      functions that have an empty body in the ESSL source. This also
      enables simplifying some tree traversers that used to take the
      possibility of missing function body nodes into account.
      
      Also fix AddDefaultReturnStatements to check the last statement inside
      the function body for a return statement, instead of checking the
      first statement.
      
      BUG=angleproject:1539
      TEST=angle_unittests, angle_end2end_tests
      
      Change-Id: I2fbd18c78653fa2f1a96dbd9a619accc4874030d
      Reviewed-on: https://chromium-review.googlesource.com/392046Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
      Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
      Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
  2. 01 Oct, 2016 2 commits
  3. 30 Sep, 2016 1 commit
  4. 29 Sep, 2016 6 commits
  5. 28 Sep, 2016 4 commits
  6. 27 Sep, 2016 5 commits
  7. 26 Sep, 2016 2 commits
  8. 23 Sep, 2016 5 commits
  9. 22 Sep, 2016 10 commits
  10. 21 Sep, 2016 3 commits
  11. 20 Sep, 2016 1 commit