Skip to content
  1. Nov 16, 2010
  2. Nov 11, 2010
  3. Nov 10, 2010
  4. Nov 09, 2010
  5. Nov 08, 2010
  6. Nov 03, 2010
  7. Oct 30, 2010
  8. Oct 28, 2010
    • John McCall's avatar
      Implement an indirect-goto optimization for goto *&&lbl and respect this · 9de9160d
      John McCall authored
      in the scope checker.  With that done, turn an indirect goto into a
      protected scope into a hard error;  otherwise IR generation has to start
      worrying about declarations not dominating their scopes, as exemplified
      in PR8473.
      
      If this really affects anyone, I can probably adjust this to only hard-error
      on possible indirect gotos into VLA scopes rather than arbitrary scopes.
      But we'll see how people cope with the aggressive change on the marginal
      feature.
      
      llvm-svn: 117539
      9de9160d
  9. Oct 25, 2010
  10. Oct 24, 2010
  11. Oct 23, 2010
  12. Oct 21, 2010
  13. Oct 19, 2010
  14. Oct 18, 2010
  15. Oct 16, 2010
  16. Oct 15, 2010
  17. Oct 14, 2010
    • Douglas Gregor's avatar
      Tweak the typo-correction implementation to determine corrections · 0afa7f66
      Douglas Gregor authored
      solely based on the names it sees, rather than actual declarations it
      gets. In essence, we determine the set of names that are "close
      enough" to the typo'd name. Then, we perform name lookup for each of
      those names, filtering out those that aren't actually visible, and
      typo-correct from the remaining results.
      
      Overall, there isn't much of a change in the behavior of typo
      correction here. The only test-suite change comes from the fact that
      we make good on our promise to require that the user type 3 characters
      for each 1 character corrected. 
      
      The real intent behind this change is to set the stage for an
      optimization to typo correction (so that we don't need to deserialize
      all declarations in a translation unit) and future work in finding
      missing qualification ("'vector' isn't in scope; did you mean
      'std::vector'?). Plus, the code is cleaner this way.
      
      llvm-svn: 116511
      0afa7f66
  18. Oct 12, 2010
  19. Oct 11, 2010
  20. Oct 10, 2010
  21. Oct 09, 2010
  22. Oct 08, 2010
    • Douglas Gregor's avatar
      This patch fixes multiple issues in clang's designated init builder and · 559c9fb1
      Douglas Gregor authored
      completes support for C1X anonymous struct/union init features:
      
       * Indexed anonymous member initializers should not be expanded. Doing so makes
      little sense and would cause unresolvable semantic ambiguity in valid code
      (regression introduced by r69153).
      
       * Subobject initialization of (possibly nested) anonymous members are now
      referred to with paths relative to the naming record context, eliminating the
      synthesis of incorrect implicit InitListExprs that caused CodeGen to assert.
      
       * Field lookup was missing a null check in IdentifierInfo comparison which
      caused lookup for a known (already resolved) field to match the first unnamed
      data member it encountered leading to silent miscompilation.
      
       * Subobject paths are no longer built using the general purpose
      Sema::BuildAnonymousStructUnionMemberPath(). If any corner cases crop up, we
      will now assert earlier in Sema instead of passing invalid InitListExprs
      through to CodeGen.
      
      Fixes PR6955, from Alp Toker!
      
      llvm-svn: 116098
      559c9fb1
    • John McCall's avatar
      __attribute__((aligned(n))) directly specifies the alignment of a declaration · 94268708
      John McCall authored
      unless it's a non-packed field, in which case it can only increase the
      alignment.  [[align]] effectively works the same way for well-formed code
      (because it's ill-formed for [[align]] to decrease alignment ever).
      
      Fixes rdar://problem/8335865
      
      llvm-svn: 116070
      94268708
    • John McCall's avatar
      Track the location of the context requiring an implicit conversion and use it · acf0ee57
      John McCall authored
      to white-list conversions required by system headers.  rdar://problem/8232669
      
      llvm-svn: 116029
      acf0ee57
    • Argyrios Kyrtzidis's avatar
      Implement -fshort-enums (rdar://8490496). · 74825bcf
      Argyrios Kyrtzidis authored
      llvm-svn: 116020
      74825bcf
  23. Oct 07, 2010
Loading