[ARM, inline-asm] Fix ARMTargetLowering::getRegForInlineAsmConstraint to return
authorAkira Hatanaka <ahatanaka@apple.com>
Mon, 3 Nov 2014 20:37:04 +0000 (20:37 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Mon, 3 Nov 2014 20:37:04 +0000 (20:37 +0000)
commitb96153481854dd26e03c9b16cea72fcc5492d03e
tree88ee5389b22b78cbc5073d0cf5ee45fb0c20c874
parent94add6bb6ff6cd995dbea423299d8f9b42a37cfe
[ARM, inline-asm] Fix ARMTargetLowering::getRegForInlineAsmConstraint to return
register class tGPRRegClass if the target is thumb1.

This commit fixes a crash that occurs during register allocation which was
triggered when a virtual register defined by an inline-asm instruction had to
be spilled.

rdar://problem/18740489

llvm-svn: 221178
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/Thumb/inlineasm-thumb.ll