mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 19:57:44 +00:00
Fix crash caused by passing register 0 to
MRegisterInfo::isPhysicalRegister(). llvm-svn: 11894
This commit is contained in:
parent
cff0fc180c
commit
3093de5bfb
@ -199,7 +199,7 @@ static inline std::ostream& OutputValue(std::ostream &os, const Value* val) {
|
||||
|
||||
static inline void OutputReg(std::ostream &os, unsigned RegNo,
|
||||
const MRegisterInfo *MRI = 0) {
|
||||
if (MRegisterInfo::isPhysicalRegister(RegNo)) {
|
||||
if (!RegNo || MRegisterInfo::isPhysicalRegister(RegNo)) {
|
||||
if (MRI)
|
||||
os << "%" << MRI->get(RegNo).Name;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user