commit | b829dc3549918925ee32765b7258b4aad0b5b0d0 | [log] [tgz] |
---|---|---|
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | Thu Oct 25 23:39:07 2018 +0000 |
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | Thu Oct 25 23:39:07 2018 +0000 |
tree | 9bd7b6a264da8667bd75756a26e3f79e6237deeb | |
parent | 50bf7df5bb75e610358a9b6a823bbff310d17569 [diff] |
Fix in MachineOperand::printIRValueReference(). Handle the case where getCurrentFunction() returns nullptr by passing -1 to printIRSlotNumber(). This will result in <badref> being printed instead of an assertion failure. Review: Francis Visoiu Mistrih https://reviews.llvm.org/D53333 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345342 91177308-0d34-0410-b5e6-96231b3b80d8