[FastISel] Fix a potential bug in FastEmitInst_ri
authorJuergen Ributzka <juergen@apple.com>
Wed, 27 Aug 2014 20:47:33 +0000 (20:47 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 27 Aug 2014 20:47:33 +0000 (20:47 +0000)
commitfc68dad43c92b4ab940bc9afd046c5d8110f03d6
treed7f7f446cbd8b5fd1c45593ec64c883348960dc3
parent5b92f447ab7ca2165c05f28f5267249b8e0270e7
[FastISel] Fix a potential bug in FastEmitInst_ri

FastEmitInst_ri was constraining the first operand without checking if it is
a virtual register. Use constrainOperandRegClass as all the other
FastEmitInst_* functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216613 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/FastISel.cpp