]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Pull in r293773 from upstream llvm trunk (by Sanjay Patel):
authorDimitry Andric <dim@FreeBSD.org>
Thu, 2 Feb 2017 23:01:29 +0000 (23:01 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Thu, 2 Feb 2017 23:01:29 +0000 (23:01 +0000)
commitc819c1240d1ba3d50227945a887756c648a92b40
tree286bdbc7b84b8528ad992338a81aebbd3a88f680
parent077e1117dce39f5f81e93399e36c83b723e69012
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