- Mar 22, 2012
-
-
Richard Smith authored
llvm-svn: 153246
-
Ted Kremenek authored
"Teach" RetainCountChecker about dispatch_set_context, which can indirectly free its argument later. Fixes <rdar://problem/11059275>. llvm-svn: 153244
-
Chandler Carruth authored
relied on an artifact of how the inliner and subsequent passes in clang's -O3 mode happen to treat basic blocks and the labels for the basic blocks. In my work on the inliner, and changed this fundamental assumption, and the label that was being checked on the entry basic block will no longer appear in opt builds. There was no reason to expect the label to always be present anyways, much to my regret. I've changed the test to just ensure that we return an immediate constant. If there are intervening instructions, that's bad, but not really that relevant to the test. I'd love it if others have a better way of checking that a function body contains only a 'ret' instruction that isn't dependent on whether or not the entry block receives a label... llvm-svn: 153243
-
Ted Kremenek authored
Fix broken CFG when an initializer is a statement expression that starts with a while loop (PR 12325). llvm-svn: 153242
-
Richard Smith authored
specialization is known to be incomplete. If we're asked to try to complete it, don't attempt to instantiate it again -- that can lead to stack overflow, and to rejects-valids if the class being incomplete is not an error. llvm-svn: 153236
-
Argyrios Kyrtzidis authored
evaluate RHS if LHS could not be evaluated and keepEvaluatingAfterFailure() is false. llvm-svn: 153235
-
Anna Zaks authored
llvm-svn: 153232
-
Fariborz Jahanian authored
all objc_msgSend unctions to void parameters and void return. // rdar://11094890 llvm-svn: 153227
-
Richard Trieu authored
non-constant value encountered. This allows the evaluator to deduce that expressions like (x < 5 || true) is equal to true. Previously, it would visit x and determined that the entire expression is could not evaluated to a constant. This fixes PR12318. llvm-svn: 153226
-
- Mar 21, 2012
-
-
Benjamin Kramer authored
llvm-svn: 153220
-
Fariborz Jahanian authored
the diagnostic instead of displaying ''. // rdar://11082110 llvm-svn: 153219
-
-
Chad Rosier authored
rdar://11054144 llvm-svn: 153216
-
Nico Weber authored
llvm-svn: 153214
-
Anna Zaks authored
Specifically, we use the last store of the leaked symbol in the leak diagnostic. (No support for struct fields since the malloc checker doesn't track those yet.) + Infrastructure to track the regions used in store evaluations. This approach is more precise than iterating the store to obtain the region bound to the symbol, which is used in RetainCount checker. The region corresponds to what is uttered in the code in the last store and we do not rely on the store implementation to support this functionality. llvm-svn: 153212
-
Anna Zaks authored
So that others could use it as well. No functionality change. llvm-svn: 153211
-
Anna Zaks authored
(The fix was committed in r152982.) llvm-svn: 153210
-
Bob Wilson authored
The getARMTargetCPU and getLLVMArchSuffixForARM functions exist in both Toolchain.cpp and Tools.cpp. This stuff needs a thorough overhaul. In the meantime, this patch at least makes them consistent. One version had been converted to use StringSwitch, and the other version had new Cortex M-series processors added. llvm-svn: 153202
-
Fariborz Jahanian authored
c-mode to match behavior with void functions in c. Issue warning with -pedantic. // rdar://11069896 llvm-svn: 153200
-
rdar://11059238Bob Wilson authored
On Darwin the architecture and the corresponding Mach-O slice is typically specified with -arch. If not, it defaults to the current host architecture. Do not use -mcpu to override the -arch value. This is only an issue when people need to use specialized code for a non-default CPU (hopefully guarded by run-time checks to detect the current processor). The -mcpu option is still used for the -target-cpu option to clang, but this patch causes it to not be used to set the architecture in the target triple. llvm-svn: 153197
-
Fariborz Jahanian authored
pointer field declarations in several meta-data. // rdar://11079898 llvm-svn: 153196
-
Patrick Beard authored
llvm-svn: 153195
-
Fariborz Jahanian authored
llvm-svn: 153193
-
Fariborz Jahanian authored
pointer field declarations in several meta-data. // rdar://11079898 llvm-svn: 153192
-
John McCall authored
in vtable layout where virtual methods inherited from virtual bases could be assigned the same vcall adjustment slot if they shared a name and parameter signature but differed in their cv-qualification. The code was already trying to handle this case, but unfortunately used the ordinary type qualifiers (which are always empty here) instead of the method qualifiers. This seems like something that the API should discourage, but I don't know how to carry that principle out in this instance. Eliminate this function's need for an ASTContext while we're at it. This bug affects the ABI, and fixing it brings us into accord with the Itanium ABI (and GCC's implementation of it), but, obviously, technically breaks full compatibility with previous releases of Clang. Just letting you know. llvm-svn: 153168
-
NAKAMURA Takumi authored
llvm-svn: 153167
-
NAKAMURA Takumi authored
RewriteModernObjC.cpp: Don't expose temporary std::string with StringRef. (StringRef)getName() can be used here. llvm-svn: 153156
-
rdar://problem/11055105John McCall authored
of references to function template parameters in noexcept clauses when the instantiation is forced from a point during parsing when a block is in scope. llvm-svn: 153152
-
Fariborz Jahanian authored
// rdar://11076938 llvm-svn: 153151
-
Eric Christopher authored
llvm-svn: 153149
-
- Mar 20, 2012
-
-
Patrick Beard authored
llvm-svn: 153146
-
Fariborz Jahanian authored
// rdar://11079898 llvm-svn: 153145
-
Patrick Beard authored
llvm-svn: 153142
-
Patrick Beard authored
llvm-svn: 153141
-
Fariborz Jahanian authored
the class pointer in the category structure. // rdar://11076938 llvm-svn: 153138
-
Sebastian Redl authored
llvm-svn: 153130
-
Sebastian Redl authored
llvm-svn: 153129
-
Fariborz Jahanian authored
llvm-svn: 153127
-
Patrick Beard authored
llvm-svn: 153126
-
Patrick Beard authored
llvm-svn: 153124
-