Fix uninitialized read in ARM's PrintAsmOperand
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 30 Jul 2018 16:45:40 +0000 (16:45 +0000)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 30 Jul 2018 16:45:40 +0000 (16:45 +0000)
commit6c1b0752997a8bf0c3109bcf4101eff24d97c9ce
tree96c998cc25fba0abaa30e1ab724ccf905c449f11
parent7816531f3c7724fb0297110346439397a99ffbcf
Fix uninitialized read in ARM's PrintAsmOperand

Summary:
Fix read of uninitialized RC variable in ARM's PrintAsmOperand when
hasRegClassConstraint returns false. This was causing
inline-asm-operand-implicit-cast test to fail in r338206.

Reviewers: t.p.northover, weimingz, javed.absar, chill

Reviewed By: chill

Subscribers: chill, eraman, kristof.beyls, chrib, llvm-commits

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

llvm-svn: 338268
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/test/CodeGen/ARM/inlineasm-64bit.ll