1. Feb 15, 2019
  2. Feb 14, 2019
    • Bruno Ricci's avatar
      [Sema] Fix a regression introduced in "[AST][Sema] Remove CallExpr::setNumArgs" · c39f8dfa
      Bruno Ricci authored
      D54902 removed CallExpr::setNumArgs in preparation of tail-allocating the
      arguments of CallExpr. It did this by allocating storage for
      max(number of arguments, number of parameters in the prototype). The
      temporarily nulled arguments however causes issues in BuildResolvedCallExpr
      when typo correction is done just after the creation of the call expression.
      
      This was unfortunately missed by the tests /:
      
      To fix this, delay setting the number of arguments to
      max(number of arguments, number of parameters in the prototype) until we are
      ready for it. It would be nice to have this encapsulated in CallExpr but this
      is the best I can come up with under the constraint that we cannot add
      anything the CallExpr.
      
      Fixes PR40286.
      
      Differential Revision: https://reviews.llvm.org/D57948
      
      Reviewed By: aaron.ballman
      
      llvm-svn: 354035
      c39f8dfa
    • Simon Pilgrim's avatar
      [X86][AVX] Add PR40730 test case · 362fe560
      Simon Pilgrim authored
      llvm-svn: 354034
      362fe560
    • Pavel Labath's avatar
      Move UnwindTable from ObjectFile to Module · 66d88326
      Pavel Labath authored
      Summary:
      This is a preparatory step to enable adding extra unwind strategies by
      symbol file plugins. This has been discussed on the lldb-dev mailing
      list: <http://lists.llvm.org/pipermail/lldb-dev/2019-February/014703.html>.
      
      Reviewers: jasonmolenda, clayborg, espindola
      
      Subscribers: lemo, emaste, lldb-commits, arichardson
      
      Differential Revision: https://reviews.llvm.org/D58129
      
      llvm-svn: 354033
      66d88326
    • Teresa Johnson's avatar
      Refine ArgPromotion metadata handling · c374a800
      Teresa Johnson authored
      Summary:
      In r353537 we now copy all metadata to the new function, with the old
      being removed when the old function is eliminated. In some cases the old
      function is dropped to a declaration (seems to only occur with the old
      PM). Go ahead and clear all metadata from the old function to handle that
      case, since verification will complain otherwise. This is consistent
      with what was being done for debug metadata before r353537.
      
      Reviewers: davidxl, uabelho
      
      Subscribers: jdoerfert, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D58215
      
      llvm-svn: 354032
      c374a800
    • Florian Hahn's avatar
      [LoopUnrollPeel] Add case where we should forget the peeled loop from SCEV. · 6ab83b7d
      Florian Hahn authored
      The test case requires the peeled loop to be forgotten after peeling,
      even though it does not have a parent. When called via the unroller,
      SE->forgetTopmostLoop is also called, so the test case would also pass
      without any SCEV invalidation, but peelLoop is exposed as utility
      function. Also, in the test case, simplifyLoop will make changes,
      removing the loop from SCEV, but it is better to not rely on this
      behavior.
      
      Reviewers: sanjoy, mkazantsev
      
      Reviewed By: mkazantsev
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D58192
      
      llvm-svn: 354031
      6ab83b7d
    • Michal Gorny's avatar
      [lldb] [lldb-server] Catch and report errors from main loop · 2d874e53
      Michal Gorny authored
      Catch the possible error from lldb-gdbserver's main loop, and report
      it verbosely.  Currently, if the loop fails the server exits normally,
      rendering the problem indistinguishable from regular termination.
      
      Differential Revision: https://reviews.llvm.org/D58228
      
      llvm-svn: 354030
      2d874e53
    • Michal Gorny's avatar
      [lldb] [MainLoop] Report errno for failed kevent() · c23f82c0
      Michal Gorny authored
      Modify the kevent() error reporting to use errno rather than returning
      the return value.  At least on FreeBSD and NetBSD, kevent() always
      returns -1 in case of error, and the actual error is returned via errno.
      
      Differential Revision: https://reviews.llvm.org/D58229
      
      llvm-svn: 354029
      c23f82c0