[all-commits] [llvm/llvm-project] ef4b9c: Fix crash while printing MMO target flags
Stanislav Mekhanoshin via All-commits
all-commits at lists.llvm.org
Wed Sep 14 17:30:11 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef4b9c33f5dd096a4d7cd03654c17492f3802d89
https://github.com/llvm/llvm-project/commit/ef4b9c33f5dd096a4d7cd03654c17492f3802d89
Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: 2022-09-14 (Wed, 14 Sep 2022)
Changed paths:
M llvm/lib/CodeGen/MachineOperand.cpp
Log Message:
-----------
Fix crash while printing MMO target flags
MachineMemOperand::print can dereference a NULL pointer if TII
is not passed from the printMemOperand. This does not happen while
dumping the DAG/MIR from llc but crashes the debugger if a dump()
method is called from gdb.
Differential Revision: https://reviews.llvm.org/D133903
More information about the All-commits
mailing list