| commit | c0a356b4fa35bf3f7d6031c229c071eef1a8f7a9 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Wed Jan 09 18:59:34 2008 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Wed Jan 09 18:59:34 2008 +0000 |
| tree | deeb9f6f269d23293d38d70bb1a46dc3d41c63d2 | |
| parent | 19009e6fe7e0f51d2e49f4c94928a048c11c5281 [diff] |
Fix isIntegerConstantExpr to compare against zero for casts to bool instead of
truncating. This allows us to compile:
void foo() {
static _Bool foo = 4;
}
into:
@foo1 = internal global i8 1
instead of:
@foo1 = internal global i8 4
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45779 91177308-0d34-0410-b5e6-96231b3b80d8