diff options
author | Austin Seipp <mad.one@gmail.com> | 2013-01-13 04:34:05 +0000 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2013-01-22 11:57:57 -0800 |
commit | 14c01e0966da2edf9b770651ce1a4ca6a206eb20 (patch) | |
tree | cbe17152cb5f70c40970f685731a7ebbc7cc971c /compiler/codeGen | |
parent | 927ca60596df0d608f87c59c3bb6d82243297190 (diff) | |
download | haskell-14c01e0966da2edf9b770651ce1a4ca6a206eb20.tar.gz |
Ensure the LLVM codegen correctly handles literals in a branch. #7571
We need to be sure that when generating code for literals, we properly narrow
the type of the literal to i1. See Note [Literals and branch conditions] in the
LlvmCodeGen.CodeGen module.
This occurs rarely as the optimizer will remove conditional branches with
literals, however we can get this situation occurring with hand written Cmm
code.
This fixes Trac #7571.
Signed-off-by: David Terei <davidterei@gmail.com>
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions