[all-commits] [llvm/llvm-project] 913b5d: [AsmPrinter] fix nullptr dereference for MBBs with...
Afanasyev Ivan via All-commits
all-commits at lists.llvm.org
Mon Aug 16 15:32:24 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 913b5d2f7af71b20be332064787baa1ec3f570c0
https://github.com/llvm/llvm-project/commit/913b5d2f7af71b20be332064787baa1ec3f570c0
Author: Afanasyev Ivan <ivafanas at gmail.com>
Date: 2021-08-16 (Mon, 16 Aug 2021)
Changed paths:
M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Log Message:
-----------
[AsmPrinter] fix nullptr dereference for MBBs with hasAddressTaken property without BB
Basic block pointer is dereferenced unconditionally for MBBs with
hasAddressTaken property.
MBBs might have hasAddressTaken property without reference to BB.
Backend developers must assign fake BB to MBB to workaround this issue
and it should be fixed.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D108092
More information about the All-commits
mailing list