change EmitLValueForField to cast the returned lvalue to the right
commit74339dfbfe3fa9c1839ce02e3427e4dc5478a3ae
authorChris Lattner <sabre@nondot.org>
Sun, 10 Jul 2011 05:34:54 +0000 (10 05:34 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Jul 2011 05:34:54 +0000 (10 05:34 +0000)
tree3a5b5d0322337d0683bcb25817fde5426b7285f4
parentf0a8679b6e6635117533b89894646f1450cea25b
change EmitLValueForField to cast the returned lvalue to the right
type, even when in the struct case.  This was one root issue that was
causing type mismatches throughout the compiler.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134862 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp