This is an archive of the discontinued LLVM Phabricator instance.

Fix crash in codegen on casting to `bool &`.
ClosedPublic

Authored by ABataev on Sep 30 2015, 8:35 PM.

Details

Summary

Currently codegen crashes trying to emit casting to bool &. It happens because bool type is converted to i1 and later then lvalue for reference is converted to i1*. But when codegen tries to load this lvalue it crashes trying to load value from this i1*.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev updated this revision to Diff 36179.Sep 30 2015, 8:35 PM
ABataev retitled this revision from to Fix crash in codegen on casting to `bool &`..
ABataev updated this object.
ABataev added a reviewer: rjmccall.
ABataev added a subscriber: cfe-commits.
This revision was automatically updated to reflect the committed changes.