trivial fix for PR20314
authorSanjay Patel <spatel@rotateright.com>
Wed, 16 Jul 2014 21:08:10 +0000 (21:08 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 16 Jul 2014 21:08:10 +0000 (21:08 +0000)
commit889a136c5297e76f71f5a8f177a7b06755657f82
treecc7a2f7840539f64f4d1875d55e580e9b94500e9
parent8758b729f5ffc3471b5e2518604e14220a0a6172
trivial fix for PR20314

Make sure that the AddrInst is an Instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213197 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/CodeGen/X86/pr20314.ll [new file with mode: 0644]