[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)
commit8d7cc6b0ff5a543cc543732b07e3fb637bc4b619
treea38055c7afa5b1e08c73b034d0564031ba25f03c
parentcce85e19f99fac40fc9b0877f1afade7d79b97ab
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221178 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/Thumb/inlineasm-thumb.ll