CodeGen: Correctly convert atomic bool from i8 to i1
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 14 Feb 2015 01:35:07 +0000 (01:35 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 14 Feb 2015 01:35:07 +0000 (01:35 +0000)
commit6866a3c6f4c6ac4c368f4292b6567e456646b07b
tree4faf9187ddbd56c54ca88e3bf3457423d2078208
parent33cc10724d7d5ae3e6502fb8806cc02a1f821aef
CodeGen: Correctly convert atomic bool from i8 to i1

Bools are a little tricky, they are i8 in memory and must be coerced
back to i1 before further operations can be performed on them.

This fixes PR22577.

llvm-svn: 229204
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGen/atomic_ops.c