Skip to content
  1. Apr 26, 2009
  2. Apr 25, 2009
    • Chris Lattner's avatar
      fix PR4073 by making designated initializer checking code use · c71d08bc
      Chris Lattner authored
      VerifyIntegerConstantExpression instead of isIntegerConstantExpr.
      This makes it ext-warn but tolerate things that fold to a constant
      but that are not valid i-c-e's.
      
      There must be a bug in the i-c-e computation though, because it
      doesn't catch this case even with pedantic.
      
      This also switches the later code to use EvaluateAsInt which is
      simpler and handles everything that evaluate does.
      
      llvm-svn: 70081
      c71d08bc
    • Douglas Gregor's avatar
      Optimize the loading of an identifier from a PCH file when given the · 95272494
      Douglas Gregor authored
      identifier's ID. In this case, we know where the identifier's entry is
      located in the hash table (it starts right before the identifier
      string itself), so skip the hash table lookup and read the entry
      directly. The performance improvement here is, gain, hard to quantify,
      but it's the right thing to do.
      
      llvm-svn: 70078
      95272494
Loading