- Jun 08, 2013
-
-
Aaron Ballman authored
sys::process::get_id() now returns the process ID instead of a process handle on Windows. Patch thanks to Kim Gräsman! llvm-svn: 183621
-
Faisal Vali authored
Fix the parser's updating of the template depth when parsing local templates and late-parsed templates. This is a slight tweak of r180708; It avoids incrementing depth when non-template local classes nested within member templates of local classes are encountered. This patch was LGTM'd by Doug http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130506/079656.html and passed the regression tests that normally pass (i.e. excluding many Module and Index tests on Windows that fail regardless) llvm-svn: 183620
-
Faisal Vali authored
I ran clang-format on my patch but it seemed to have wreaked havoc with new lines - might have to do with using it on windows :( will resubmit once i've cleaned this issue up. sorry. llvm-svn: 183619
-
Faisal Vali authored
Fix the parser's updating of the template depth when parsing local templates and late-parsed templates. This is a slight tweak of r180708; It avoids incrementing depth when non-template local classes nested within member templates of local classes are encountered. This patch was LGTM'd by Doug http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130506/079656.html and passed the regression tests that normally pass (i.e. excluding many Module and Index tests on Windows that fail regardless) llvm-svn: 183618
-
Reid Kleckner authored
r183614 was failing because va_list on some platforms is defined in a similar manner. This test fails on Windows with r183614 applied. llvm-svn: 183617
-
Reid Kleckner authored
This reverts commit r183614. It broke test/Sema/block-printf-attribute-1.c on non-Windows platforms, and the fix is not trivial. llvm-svn: 183616
-
Reid Kleckner authored
This helps preserve the type-as-written in the AST, which we need for MSVC mangling. In particular, we need to preserve the types of array parameters in function pointer types. The essence of this change is: - QualType ArgTy = Param->getType(); + QualType ArgTy = Param->getTypeSourceInfo()->getType(); ... followed by the adjustment in ActOnFunctionDeclarator(). Differential Revision: http://llvm-reviews.chandlerc.com/D883 llvm-svn: 183614
-
Venkatraman Govindaraju authored
llvm-svn: 183613
-
Amaury de la Vieuville authored
Enforce Table A7-15 (op=1, cmode=0b111) -> UNDEF llvm-svn: 183612
-
Amaury de la Vieuville authored
llvm-svn: 183611
-
Amaury de la Vieuville authored
Handle the case when the disassembler table can't tell the difference between some encodings of QADD and CPS. Add some necessary safe guards in CPS decoding as well. llvm-svn: 183610
-
Serge Pavlov authored
Differential Revision: http://llvm-reviews.chandlerc.com/D586 llvm-svn: 183609
-
Amaury de la Vieuville authored
UNPRED was reported instead of UNDEF llvm-svn: 183608
-
Logan Chien authored
Several LLVM headers are moved. The code listings in LLVM tutorial are not updated yet. This CL removes the code replica in the .rst, and replace them with a literalinclude directive, so that sphinx can include the latest code automatically. llvm-svn: 183607
-
Shuxin Yang authored
r183584 tries to derive some info from the code *AFTER* a call and apply these derived info to the code *BEFORE* the call, which is not always safe as the call in question may never return, and in this case, the derived info is invalid. Thank Duncan for pointing out this potential bug. rdar://14073661 llvm-svn: 183606
-
Sean Silva authored
sys::IdentifyFileType is already conscious of the length, and object_error::invalid_file_type is returned below anyway if sys::IdentifyFileType doesn't recognize the file. llvm-svn: 183605
-
Rui Ueyama authored
llvm-svn: 183604
-
Rui Ueyama authored
llvm-svn: 183603
-
Jin-Gu Kang authored
llvm-svn: 183602
-
JF Bastien authored
llvm-svn: 183601
-
Anna Zaks authored
Based on feedback from Jordan. llvm-svn: 183600
-
Anna Zaks authored
We drew the diagnostic edges to wrong statements in cases the note was on a macro. The fix is simple, but seems to work just fine for a whole bunch of test cases (plist-macros.cpp). Also, removes an unnecessary edge in edges-new.mm, when function signature starts with a macro. llvm-svn: 183599
-
Michael Gottesman authored
llvm-svn: 183598
-
Adrian Prantl authored
Two variables with the same name declared in two if conditions in the same scope are no longer coalesced into one. rdar://problem/14024005 llvm-svn: 183597
-
Akira Hatanaka authored
destination operands of an instruction. No functionality changes. llvm-svn: 183596
-
Quentin Colombet authored
instantiation issue with non-standard type. Add a backend option to warn on a given stack size limit. Option: -mllvm -warn-stack-size=<limit> Output (if limit is exceeded): warning: Stack size limit exceeded (<actual size>) in <functionName>. The longer term plan is to hook that to a clang warning. PR:4072 <rdar://problem/13987214>. llvm-svn: 183595
-
Richard Smith authored
created through binding a reference-to-array to an initializer list. llvm-svn: 183594
-
Vincent Lejeune authored
This is using a hint from AMD APP OpenCL Programming Guide with empirically tweaked parameters. I used Unigine Heaven 3.0 to determine best parameters on my system (i7 2600/Radeon 6950/Kernel 3.9.4) the benchmark : it went from 38.8 average fps to 39.6, which is ~3% gain. (Lightmark 2008.2 gain is much more marginal: from 537 to 539) There is no lit test provided as the parameter were determined empirically and it it would be nearly impossiblet to find a test program that check for optimal behavior. llvm-svn: 183593
-
Vincent Lejeune authored
llvm-svn: 183592
-
Eric Christopher authored
sure to do this always, this matches the behavior for the gcc driver. Fixes PR16251. Based on a patch by Qiao Yang. llvm-svn: 183591
-
Eli Friedman authored
llvm-svn: 183590
-
Jakob Stoklund Olesen authored
llvm-svn: 183589
-
Douglas Gregor authored
Loosen r178109 even further, to assume that all redefined macros in system headers and system modules are equivalent. Fixes <rdar://problem/14025673>. llvm-svn: 183588
-
Jakob Stoklund Olesen authored
llvm-svn: 183587
-
Eric Christopher authored
llvm-svn: 183586
-
Douglas Gregor authored
llvm-svn: 183585
-
Shuxin Yang authored
The MemCpyOpt pass is capable of optimizing: callee(&S); copy N bytes from S to D. into: callee(&D); subject to some legality constraints. Assertion is triggered when the compiler tries to evalute "sizeof(typeof(D))", while D is an opaque-typed, 'sret' formal argument of function being compiled. i.e. the signature of the func being compiled is something like this: T caller(...,%opaque* noalias nocapture sret %D, ...) The fix is that when come across such situation, instead of calling some utility functions to get the size of D's type (which will crash), we simply assume D has at least N bytes as implified by the copy-instruction. rdar://14073661 llvm-svn: 183584
-
Eli Friedman authored
llvm-svn: 183583
-
Adrian Prantl authored
- factor the name construction part out from constructSetterName - rename constructSetterName to the more appropriate constructSetterSelector no functionality change intended. rdar://problem/14035789 llvm-svn: 183582
-
Hal Finkel authored
On PPC32, [su]div,rem on i64 types are transformed into runtime library function calls. As a result, they are not allowed in counter-based loops (the counter-loops verification pass caught this error; this change fixes PR16169). llvm-svn: 183581
-