summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/cast-to-ref-bool.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash in codegen on casting to `bool &`.Alexey Bataev2015-10-071-0/+9
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*. Differential Revision: http://reviews.llvm.org/D13325 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249534 91177308-0d34-0410-b5e6-96231b3b80d8