]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Pull in r293773 from upstream llvm trunk (by Sanjay Patel):
authordim <dim@FreeBSD.org>
Thu, 2 Feb 2017 23:01:29 +0000 (23:01 +0000)
committerdim <dim@FreeBSD.org>
Thu, 2 Feb 2017 23:01:29 +0000 (23:01 +0000)
commit23a4ddac2be4c8d7cd6991fb7bb95d6511f38c0c
tree286bdbc7b84b8528ad992338a81aebbd3a88f680
parentf971e0a0d9afff38d9368f8e0651a30dcbf3bd5a
Pull in r293773 from upstream llvm trunk (by Sanjay Patel):

  [ValueTracking] avoid crashing from bad assumptions (PR31809)

  A program may contain llvm.assume info that disagrees with other
  analysis. This may be caused by UB in the program, so we must not
  crash because of that.

  As noted in the code comments:
  https://llvm.org/bugs/show_bug.cgi?id=31809
  ...we can do better, but this at least avoids the assert/crash in the
  bug report.

  Differential Revision: https://reviews.llvm.org/D29395

This fixes an assertion when building editors/emacs-devel.

PR: 216614
contrib/llvm/lib/Analysis/ValueTracking.cpp