- Apr 13, 2011
-
-
Daniel Dunbar authored
there is no reason to align them higher. - This roughly matches llvm-gcc's r126913. - It is an open question whether or not we should do this for cstring's in general (code size vs optimization potential), for now we just match llvm-gcc until someone wants to run some experiments. llvm-svn: 129410
-
John McCall authored
because the result is ignored. The particular example here is with property l-values, but there could be all sorts of lovely casts that this isn't safe for. Sink the check into the one case that seems to actually be capable of honoring this. llvm-svn: 129397
-
- Apr 12, 2011
-
-
Ted Kremenek authored
llvm-svn: 129395
-
Ted Kremenek authored
Fix another IdempotentOperationsChecker corner case when determining if an active block on the worklist impacts the results of the check. llvm-svn: 129394
-
Ted Kremenek authored
ArrayBoundCheckerV2: don't arbitrarily warn about indexing before the 0-index of a symbolic region. In many cases that isn't really the base offset. llvm-svn: 129366
-
Lenny Maiorani authored
This patch adds modeling of strcmp() to the CString checker. Validates inputs are not NULL and are real C strings, then does the comparison and binds the proper return value. Unit tests included. llvm-svn: 129364
-
Fariborz Jahanian authored
the initialized's protocol and yet clang warns. objective-c issue, // rdar://9267196 llvm-svn: 129363
-
Richard Smith authored
a crash when deserializing the AST for this: typedef char (&R); extern R &r; llvm-svn: 129358
-
Ted Kremenek authored
llvm-svn: 129349
-
Ted Kremenek authored
Fix bug in SimpleSValBuilder where '--' pointer arithmetic was treated like '++' pointer arithmetic. llvm-svn: 129348
-
Douglas Gregor authored
RTTI is disabled. Similarly, don't suggest throw or try as code completion results when C++ exceptions are disabled. Fixes <rdar://problem/9193560>. llvm-svn: 129346
-
John McCall authored
weak linkage. Also, fix a problem where global weak variables with non-trivial initializers were getting guard variables, or at least were checking for them and then crashing. llvm-svn: 129342
-
Douglas Gregor authored
Objective-C pointer type. Fixes <rdar://problem/9142559>. llvm-svn: 129339
-
John McCall authored
llvm-svn: 129337
-
Ted Kremenek authored
llvm-svn: 129333
-
John McCall authored
for __unknown_anytype resolution to destructively modify the AST. So that's what it does now, which significantly simplifies some of the implementation. Normal member calls work pretty cleanly now, and I added support for propagating unknown-ness through &. llvm-svn: 129331
-
Ted Kremenek authored
llvm-svn: 129308
-
- Apr 11, 2011
-
-
Fariborz Jahanian authored
rewriting of blocks which have objective-c stuff which need be rewritten as well. // rdar://9254348 llvm-svn: 129300
-
Chris Lattner authored
by Jeremy Huddleston! llvm-svn: 129299
-
Anders Carlsson authored
If there's an invoke destination, we should use invoke instead of call when calling the __cxa_bad_typeid function. Fixes PR7400. llvm-svn: 129273
-
John McCall authored
llvm-svn: 129269
-
Anders Carlsson authored
llvm-svn: 129265
-
Anders Carlsson authored
CodeGenFunction::EmitDynamicCast always return null or throw a bad_cast exception. llvm-svn: 129264
-
Anders Carlsson authored
llvm-svn: 129263
-
Anders Carlsson authored
llvm-svn: 129262
-
Anders Carlsson authored
llvm-svn: 129261
-
Eli Friedman authored
llvm-svn: 129260
-
- Apr 10, 2011
-
-
Anders Carlsson authored
represents a dynamic cast where we know that the result is always null. For example: struct A { virtual ~A(); }; struct B final : A { }; struct C { }; bool f(B* b) { return dynamic_cast<C*>(b); } llvm-svn: 129256
-
John McCall authored
and move a vector-splat check to follow l-value conversion. llvm-svn: 129254
-
Anders Carlsson authored
Strip off parens and no-op casts when deciding if an expr can be devirtualized. Fixes the second half of PR9660. llvm-svn: 129253
-
Anders Carlsson authored
llvm-svn: 129252
-
Anders Carlsson authored
llvm-svn: 129250
-
Chandler Carruth authored
rewriting the literal when the value is integral. It is not uncommon to see code written as: const int kBigNumber = 42e5; Without any real awareness that this is no longer an ICE. The note helps automate and ease the process of fixing code that violates the warning. llvm-svn: 129243
-
Francois Pichet authored
llvm-svn: 129242
-
Eli Friedman authored
While I'm here, FileCheck-ize the ext-vector test, so we actually check what it is generating. llvm-svn: 129241
-
Francois Pichet authored
of template class. The new value is ignored. This fixes 1 error when parsing MSVC 2010 header files with clang. llvm-svn: 129240
-
John McCall authored
for them. The only major missing feature is references. llvm-svn: 129234
-
- Apr 09, 2011
-
-
Eli Friedman authored
check is triggered appropriately. Reported on cfe-dev. llvm-svn: 129231
-
Lenny Maiorani authored
Validates inputs are not NULL, checks for overlapping strings, concatenates the strings checking for buffer overflow, sets the length of the destination string to the sum of the s1 length and the s2 length, binds the return value to the s1 value. llvm-svn: 129215
-
Dylan Noblesmith authored
Make KEYALL a combination of all other flags instead of its own separate flag. Also rewrite the enum definitions in hex instead of decimal. llvm-svn: 129213
-