- Apr 30, 2012
-
-
David Blaikie authored
filter_decl_iterator had a weird mismatch where both op* and op-> returned T* making it difficult to generalize this filtering behavior into a reusable library of any kind. This change errs on the side of value, making op-> return T* and op* return T&. (reviewed by Richard Smith) llvm-svn: 155808
-
David Blaikie authored
This ought to fix PR11926, a crash when when running Clang built with GCC 4.7 llvm-svn: 155805
-
Richard Smith authored
g++4.7, which reuses stack space allocated for temporaries. CFGElement::getAs returns a suitably-cast version of 'this'. Patch by Markus Trippelsdorf! No test: this code has the same observable behavior as the old code when built with most compilers, and the tests were already failing when built with a compiler for which this produced a broken binary. llvm-svn: 155803
-
- Apr 29, 2012
-
-
Richard Smith authored
type. But a glvalue can be reinterpret_cast to either flavor of reference. llvm-svn: 155789
-
Richard Smith authored
victim. Don't crash if we have a delay-parsed exception specification for a class member which is invalid in a way which precludes building a FunctionDecl. llvm-svn: 155788
-
Richard Smith authored
diagnostic, add a test for this paragraph, and tighten up the diagnostic wording a little. llvm-svn: 155784
-
- Apr 28, 2012
-
-
Julien Lerouge authored
i32 __builtin_annotation(i32, string); Applying it to i64 (e.g., long long) generates the following IR. trunc i64 {{.*}} to i32 call i32 @llvm.annotation.i32 zext i32 {{.*}} to i64 The redundant truncation and extension make the result difficult to use. This patch makes __builtin_annotation() generic. type __builtin_annotation(type, string); For the i64 example, it simplifies the generated IR to: call i64 @llvm.annotation.i64 Patch by Xi Wang! llvm-svn: 155764
-
Chris Lattner authored
t.c:3:9: error: expected expression if (x)) { ^ .. which isn't even true - a statement or expression is fine. After: t.c:3:9: error: extraneous ')' after condition, expected a statement if (x)) { ^ This is the second part of PR12595 llvm-svn: 155762
-
Chris Lattner authored
us to improve this diagnostic (telling us to insert another ")": t.c:2:19: error: expected ';' at end of declaration int x = 4+(5-12)); ^ ; to: t.c:2:19: error: extraneous ')' before ';' int x = 4+(5-12)); ^ ...telling us to remove the ")". This is PR12595. There are more uses of ExpectAndConsumeSemi that could be switched over, but I don't hit them on a daily basis :) llvm-svn: 155759
-
Benjamin Kramer authored
llvm-svn: 155758
-
Benjamin Kramer authored
llvm-svn: 155757
-
Benjamin Kramer authored
Rename isPODType (using the C++98 rules) into isCXX98PODType and make isPODType decide which one to use based on LangOptions. - -Wc++98-compat depends on the c++98 definition - Now __is_pod returns the right thing in c++11 and c++98 mode - All changes to the type traits test are validated against g++ 4.7 llvm-svn: 155756
-
Benjamin Kramer authored
This is just papering over a major bug in isPODType, real fix coming up soon. llvm-svn: 155755
-
Benjamin Kramer authored
Keep the old definition for C++98 so we don't break tr1::is_pod. llvm-svn: 155754
-
Jordy Rose authored
[analyzer] Remove references to idx::TranslationUnit. Index is dead, cross-TU inlining never panned out. llvm-svn: 155751
-
Nico Weber authored
llvm-svn: 155741
-
Fariborz Jahanian authored
nonfragile ivar access code when ivar type is a locally defined struct/union type. // rdar://11323187 llvm-svn: 155740
-
Douglas Gregor authored
up with gaps when the class inherits from the same empty base class more than once. Fixes <rdar://problem/11324167>. llvm-svn: 155738
-
Chad Rosier authored
The Avida Project (http://avida.devosoft.org) exceeds the 256 limit. rdar://11289131 llvm-svn: 155737
-
- Apr 27, 2012
-
-
Fariborz Jahanian authored
symbols should be static. // rdar://11337074 llvm-svn: 155736
-
Chad Rosier authored
architecture; this was happening for tools such as lipo and dsymutil. Also, if no -arch option has been specified, set the architecture based on the TC default. rdar://11329656 llvm-svn: 155730
-
Richard Smith authored
We do not support IRGen for these, and get some parts of the semantic analysis wrong. llvm-svn: 155728
-
Kaelyn Uhrain authored
llvm-svn: 155723
-
Chad Rosier authored
intended. llvm-svn: 155719
-
Chad Rosier authored
intended. llvm-svn: 155718
-
Chad Rosier authored
llvm-svn: 155708
-
Alexey Samsonov authored
llvm-svn: 155697
-
Ted Kremenek authored
Use a deque instead of an ImmutableList in AnalysisConsumer to preserve the file order that functions are visited. Should fix the buildbots. llvm-svn: 155693
-
NAKAMURA Takumi authored
llvm-svn: 155692
-
NAKAMURA Takumi authored
llvm-svn: 155691
-
-
-
Richard Smith authored
llvm-svn: 155681
-
Ted Kremenek authored
of a mutable SmallPtrSet. While iterating over LocalTUDecls, there were cases where we could modify LocalTUDecls, which could result in invalidating an iterator and an analyzer crash. Along the way, switch some uses of std::queue to std::dequeue, which should be slightly more efficient. Unfortunately, this is a difficult case to create a test case for. llvm-svn: 155680
-
Chad Rosier authored
llvm-svn: 155679
-
Kaelyn Uhrain authored
to a given type, when the reason is that there is a non-type decl with the same name. llvm-svn: 155677
-
Fariborz Jahanian authored
of writing a __block variable being initialized with a constructed object. // rdar://11326988 llvm-svn: 155673
-
Eli Friedman authored
llvm-svn: 155670
-
- Apr 26, 2012
-
-
Nico Weber authored
Add a test for PR12674. llvm-svn: 155666
-
Fariborz Jahanian authored
// rdar://11323676 llvm-svn: 155664
-