Skip to content
Commit 119d81a4 authored by Chris Lattner's avatar Chris Lattner
Browse files

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
parent 41a1ef0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment