diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-09 18:59:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-09 18:59:34 +0000 |
commit | 119d81a4f4791197bdf95be52782c37e6a073a56 (patch) | |
tree | 2d124c736936208bd56f0ede808475ac78c94ea8 /llvm/lib/System/DynamicLibrary.cpp | |
parent | 41a1ef0dfe52c9bfa5c339f254e20b4bb02a7287 (diff) | |
download | llvm-119d81a4f4791197bdf95be52782c37e6a073a56.zip llvm-119d81a4f4791197bdf95be52782c37e6a073a56.tar.gz llvm-119d81a4f4791197bdf95be52782c37e6a073a56.tar.bz2 |
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
llvm-svn: 45779
Diffstat (limited to 'llvm/lib/System/DynamicLibrary.cpp')
0 files changed, 0 insertions, 0 deletions