]> granicus.if.org Git - llvm/commit
[CodeGen] Remove unused MachineMemOperand::print wrappers (PR41772)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 16:20:28 +0000 (16:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 2 Oct 2019 16:20:28 +0000 (16:20 +0000)
commitc766f1fc508e98f38e4d0663d6a470374c3c45aa
treebbb4b6b1057160608f35cbbb57d3964ec0610662
parent4705cd509e38336da0e8d66be269e164401b43d5
[CodeGen] Remove unused MachineMemOperand::print wrappers (PR41772)

As noted on PR41772, the static analyzer reports that the MachineMemOperand::print partial wrappers set a number of args to null pointers that were then dereferenced in the actual implementation.

It turns out that these wrappers are not being used at all (hence why we're not seeing any crashes), so I'd like to propose we just get rid of them.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373484 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineMemOperand.h
lib/CodeGen/MachineOperand.cpp