- Jun 30, 2010
-
-
Duncan Sands authored
replaced by a bigger array in SmallPtrSet (by overridding it), instead just use a pointer to the start of the storage, and have SmallPtrSet pass in the value to use. This has the disadvantage that SmallPtrSet becomes bigger by one pointer. It has the advantage that it no longer uses tricky C++ rules, and is clearly correct while I'm not sure the previous version was. This was inspired by g++-4.6 pointing out that SmallPtrSetImpl was writing off the end of SmallArray, which it was. Since SmallArray is replaced with a bigger array in SmallPtrSet, the write was still to valid memory. But it was writing off the end of the declared array type - sounds kind of dubious to me, like it sounded dubious to g++-4.6. Maybe g++-4.6 is wrong and this construct is perfectly valid and correctly compiled by all compilers, but I think it is better to avoid the whole can of worms by avoiding this construct. llvm-svn: 107285
-
Gabor Greif authored
llvm-svn: 107282
-
Benjamin Kramer authored
llvm-svn: 107281
-
Gabor Greif authored
llvm-svn: 107280
-
Gabor Greif authored
llvm-svn: 107279
-
Gabor Greif authored
llvm-svn: 107278
-
Gabor Greif authored
llvm-svn: 107277
-
Gabor Greif authored
llvm-svn: 107276
-
Gabor Greif authored
llvm-svn: 107275
-
rdar://8139785Argyrios Kyrtzidis authored
As a bonus, fix the warning for || and && operators; it was emitted even if one of the operands had side effects, e.g: x || test_logical_foo1(); emitted a bogus "expression result unused" for 'x'. llvm-svn: 107274
-
Gabor Greif authored
llvm-svn: 107273
-
Gabor Greif authored
llvm-svn: 107272
-
Gabor Greif authored
llvm-svn: 107271
-
Gabor Greif authored
llvm-svn: 107270
-
Gabor Greif authored
llvm-svn: 107269
-
Argyrios Kyrtzidis authored
llvm-svn: 107268
-
Argyrios Kyrtzidis authored
llvm-svn: 107267
-
Argyrios Kyrtzidis authored
llvm-svn: 107266
-
Argyrios Kyrtzidis authored
llvm-svn: 107265
-
Charles Davis authored
doesn't mangle array parameters right), but I think that should be fixed in Sema (Doug, John, what do you think?). Also, stub out the remaining mangleType() routines. llvm-svn: 107264
-
Ted Kremenek authored
Correctly implement the CheckerVisit optimization introduced in r106884, but this time actually used the cached checker list when calling back to Checker visit methods. This reduces the analysis time for sqlite3.c by 8%. llvm-svn: 107259
-
Dan Gohman authored
llvm-svn: 107258
-
Dan Gohman authored
llvm-svn: 107257
-
Dan Gohman authored
the old one instead of replacing it, to be more precise. llvm-svn: 107256
-
Daniel Dunbar authored
'long'. The practical upshot is so that the uint64_t we define in our stdint.h ends up being compatible with that defined by gcc (at least on Darwin), which otherwise could lead to type incompatibilities with other system headers. llvm-svn: 107255
-
Daniel Dunbar authored
llvm-svn: 107254
-
Dan Gohman authored
on ScalarEvolution successfully folding and preserving range information for both A-B and B-A. Now, if it gets either one, it's sufficient. llvm-svn: 107249
-
Dan Gohman authored
llvm-svn: 107248
-
Jim Ingham authored
Add a way for the completers to say whether the completed argument should have a space inserted after is or not. Added the file name completer to the "file" command. llvm-svn: 107247
-
Bruno Cardoso Lopes authored
llvm-svn: 107246
-
Bruno Cardoso Lopes authored
llvm-svn: 107245
-
John Mosby authored
llvm-svn: 107244
-
Bruno Cardoso Lopes authored
llvm-svn: 107243
-
Chandler Carruth authored
Previously we relied on the presence of a member which needs no initialization to prevent us from creating an additional initialization of the outer anonymous union field. We have already correctly marked that field as initialized by the member of the union (repeatedly due to the original bug this patch fixes) so we simply need to bail out. llvm-svn: 107242
-
Bruno Cardoso Lopes authored
llvm-svn: 107241
-
Bruno Cardoso Lopes authored
llvm-svn: 107240
-
Chandler Carruth authored
else. Get the build bots happy while I debug. Very sorry for the delay fixing this... llvm-svn: 107239
-
Bruno Cardoso Lopes authored
- Add VEX encoding bits to x86 MRM0r-MRM7r llvm-svn: 107238
-
Devang Patel authored
llvm-svn: 107237
-
Jordy Rose authored
Pointers casted as integers still count as locations to SimpleSValuator, so don't crash if we do a funny thing like ((int)ptr)&1. Fixes PR7527. llvm-svn: 107236
-