Commits

Chris Lattner committed a7b39c21f3d
emitReferenceToDecl is serving two purposes: for VarDecls it can often produce an lvalue, for everything else it produces an RValue. Split it up a bit so that all of the lvalue cases are handled by emitLValueForDecl (which it calls). This allows clients that only expect an lvalue back to have a simpler path, and allows one that wants to probe to see if something is an lvalue or not to be simpler. Swift SVN r12715