]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix assertion when building devel/glog with new pass manager
authorDimitry Andric <dim@FreeBSD.org>
Tue, 2 Nov 2021 10:17:37 +0000 (11:17 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 6 Dec 2021 16:30:09 +0000 (17:30 +0100)
commitc009c03b3731dbbc0461172eb729da461eed5181
tree91bd8e1cbaf6393d8614a1ab6db73c5289d98223
parent29623cceb1f21253b1f4b64e538513c5314b3140
Fix assertion when building devel/glog with new pass manager

Merge commit 029f1a534489 from llvm git (by Arthur Eubanks):

  [LazyCallGraph] Skip blockaddresses

  blockaddresses do not participate in the call graph since the only
  instructions that use them must all return to someplace within the
  current function. And passes cannot retrieve a function address from a
  blockaddress.

  This was suggested by efriedma in D58260.

  Fixes PR50881.

  Reviewed By: nickdesaulniers

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

(cherry picked from commit a18c6161efc903f636c41b8e521e917a5b315ce8)
contrib/llvm-project/llvm/include/llvm/Analysis/LazyCallGraph.h