Fixes Issue 10419 - ICE when lvalue check returns false on function return type.
Merge pull request #2234 from AndrejMitrovic/Fix10419

Issue 10419 - ICE when lvalue check returns false on function return type