Fariborz Jahanian
6ab7ed40c7
Implemented rewriting of invocation of a block ivar.
...
(radar 7482224).
llvm-svn: 91652
2009-12-18 01:15:21 +00:00
Eli Friedman
fa7f519ce4
Temporarily XFAIL this test.
...
llvm-svn: 91643
2009-12-18 00:23:19 +00:00
Sean Callanan
12ca3f46d8
Testcase fixes to reflect instruction table changes in the LLVM backend
...
(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091214/092780.html )
The instruction fixes were checked and approved by Chris Lattner, but
these testcase fixes are mine; please yell at me if there are any
problems with either.
* PR5050-constructor-conversion.cpp
* array-construction.cpp
* constructor-conversion.cpp
* cast-conversion.cpp
* constructor-default-arg.cpp
* derived-to-base-conv.cpp
* ptr-to-member-function.cpp
* call-arg-zero-temp.cpp
* default-destructor-synthesis.cpp
* global-array-destruction.cpp
* array-operator-delete-call.cpp
* decl-ref-init.cpp
* default-constructor-for-members.cpp
* convert-to-fptr.cpp
* constructor-for-array-members.cpp
* conversion-function.cpp
* objc-read-weak-byref.m
Fixed testcase to reflect call qualifier
llvm-svn: 91640
2009-12-18 00:04:09 +00:00
John McCall
90d3bb943e
Patch over yet more problems with friend declarations which were provoking
...
problems on LLVM-Code-Syntax. This proved remarkably easy to "fix" once
I settled on how I was going to approach it.
llvm-svn: 91633
2009-12-17 23:21:11 +00:00
Nuno Lopes
050672ab84
reword the help text of fno_assume_sane_operator_new, following Chris suggestion
...
llvm-svn: 91630
2009-12-17 22:37:33 +00:00
Mike Stump
6dc04f4067
Revert r91073.
...
llvm-svn: 91629
2009-12-17 22:14:41 +00:00
Douglas Gregor
95a438b291
Add a couple more paths to the LLVM-Code-Syntax test
...
llvm-svn: 91627
2009-12-17 21:51:02 +00:00
Ted Kremenek
48af0e0a71
Tweak formatting and comments.
...
llvm-svn: 91615
2009-12-17 20:10:17 +00:00
Ted Kremenek
94cc33f33e
Convert GRExprEngine::VisitCallExpr() to use a worklist instead of recursion to evaluate the arguments of a CallExpr. This simplifies the logic and makes it easier to read. (it also avoids any issues with blowing out the stack if the CallExpr had a ridiculous number of arguments)
...
llvm-svn: 91613
2009-12-17 20:06:29 +00:00
Ted Kremenek
da7d55a4a8
Reduce nesting by using early exits. No functionality change.
...
llvm-svn: 91610
2009-12-17 19:17:27 +00:00
Nuno Lopes
e9823fab83
implement PR3962: diagnose more faulty cases of usage of the restrict qualifier. this also removes a FIXME
...
llvm-svn: 91601
2009-12-17 11:35:26 +00:00
Nuno Lopes
641fdce235
revert part of my last patch, and mark only the c++ global new operator as noalias. the rest will be infered by llvm optz
...
llvm-svn: 91600
2009-12-17 10:15:49 +00:00
Nuno Lopes
ff22e5e8cb
document -fno-assume-sane-operator-new, per Chris request.
...
please review for English grammar mistakes
llvm-svn: 91599
2009-12-17 10:00:52 +00:00
Chandler Carruth
aacafe54af
Include <time.h> in order to use 'time_t'.
...
llvm-svn: 91597
2009-12-17 09:27:29 +00:00
Chandler Carruth
65ce1b7c61
Test for errors during fread() inside c-index-test and handle them
...
appropriately. This also silences some pedantic GCC warnings.
llvm-svn: 91596
2009-12-17 09:18:43 +00:00
Ted Kremenek
f907cee544
Sort switch statement. No functionality change.
...
llvm-svn: 91591
2009-12-17 07:38:34 +00:00
Anders Carlsson
3f4336cb1f
Rename GetAddrOfRTTI to GetAddrOfRTTIDescriptor. Remove the overload that takes a CXXRecordDecl since we were just creating a QualType from it anyway.
...
llvm-svn: 91590
2009-12-17 07:09:17 +00:00
Mike Stump
cd8faeb0b1
Ensure we run cleanups for CXXTemporaries on the exceptional edge. WIP.
...
llvm-svn: 91588
2009-12-17 06:08:47 +00:00
Chris Lattner
3dfff974ec
reimplement r90860, fixing a couple of problems:
...
1. Don't make a copy of LangOptions every time a lexer is created.
2. Don't make CharInfo global mutable state.
3. Fix the implementation to properly treat ^Z as EOF instead of as
horizontal whitespace, which matches the semantic implemented by VC++.
llvm-svn: 91586
2009-12-17 05:29:40 +00:00
Anders Carlsson
1fd734276d
Simplify RTTIBuilder::finish.
...
llvm-svn: 91585
2009-12-17 05:10:59 +00:00
Anders Carlsson
e5a94105eb
Move the Info vector into the RTTIBuilder struct. No functionality change.
...
llvm-svn: 91583
2009-12-17 05:06:03 +00:00
Anders Carlsson
539e584c3c
Attempt to fix rtti-layout.cpp on Linux.
...
llvm-svn: 91581
2009-12-17 04:57:25 +00:00
Anders Carlsson
dc9b9cf7b1
Add a (currently failing) RTTI layout test.
...
llvm-svn: 91580
2009-12-17 04:41:05 +00:00
Ted Kremenek
85bcc986d6
Add failing test case for C++ static analysis.
...
llvm-svn: 91578
2009-12-17 01:44:13 +00:00
Ted Kremenek
2e2b258158
Fix check in GRExprEngine for the 'main' function to handle NULL IdentifierInfo*'s.
...
llvm-svn: 91577
2009-12-17 01:20:43 +00:00
Fariborz Jahanian
057a17e4c5
Diagnose duplicate declaration of a property. Fixes
...
PR5809
llvm-svn: 91575
2009-12-17 00:49:09 +00:00
Eli Friedman
7f4933f6c7
Fix for PR5801: codegen memcpy, memmove, memset directly to LLVM intrinsics.
...
llvm-svn: 91573
2009-12-17 00:14:28 +00:00
Ted Kremenek
d970acb60f
Completely remove ObjCObjectRegion (tests pass this time).
...
llvm-svn: 91572
2009-12-16 23:53:37 +00:00
Fariborz Jahanian
01cbe441b3
Allow pointer convesion of an objective-c pointer to
...
'void *' to mimic gcc's behavior. (fixes radar 7477351).
llvm-svn: 91570
2009-12-16 23:13:33 +00:00
Eli Friedman
8d0da8042b
Fix test.
...
llvm-svn: 91566
2009-12-16 20:47:15 +00:00
Eli Friedman
6a8dc922b3
Make sure C-specific enum warning doesn't trigger in C++.
...
llvm-svn: 91563
2009-12-16 20:30:08 +00:00
Daniel Dunbar
15cef0ed42
Fix -fdollars-in-identifiers Clang translation.
...
llvm-svn: 91562
2009-12-16 20:10:18 +00:00
Eli Friedman
5dd02a0f65
Correctly calcluate abstract-ness in the case where an implicitly declared
...
method overrides a pure virtual method.
llvm-svn: 91558
2009-12-16 20:00:27 +00:00
Ted Kremenek
3ab9e4cf87
Temporarily revert 91553.
...
llvm-svn: 91557
2009-12-16 19:46:44 +00:00
Ted Kremenek
023bceaf1b
Remove use of ObjCObjectRegion from BasicStoreManager.
...
llvm-svn: 91553
2009-12-16 19:42:23 +00:00
Douglas Gregor
8cdc2e0590
Fix test case to unbreak testing
...
llvm-svn: 91551
2009-12-16 19:18:40 +00:00
Douglas Gregor
4f4b186215
When value-initializing a class with no user-defined constructors but
...
with a non-trivial default constructor, zero-initialize the storage
and then call the default constructor. Fixes PR5800.
llvm-svn: 91548
2009-12-16 18:50:27 +00:00
Ted Kremenek
22a8a4bfb9
Compute the right extension for preprocessed Objective-C++ files.
...
llvm-svn: 91547
2009-12-16 18:32:41 +00:00
Fariborz Jahanian
00857fc376
Diagnose property of reference type as unsupported
...
instead of crashing for now.
llvm-svn: 91546
2009-12-16 18:03:30 +00:00
Anders Carlsson
d681a29ac0
Baby steps towards fixing PR5589. If a class needs a vtable pointer, add one.
...
llvm-svn: 91545
2009-12-16 17:27:20 +00:00
Nuno Lopes
13c88c7269
implement PR5654: add -fassume-sane-operator-new, which is enabled by default, and adds the malloc attribute to the global function new() and to the overloaded new operators.
...
feel free to chage the name to this lengthy argument
llvm-svn: 91543
2009-12-16 16:59:22 +00:00
Douglas Gregor
59ae3c8542
In Sema::CheckInitializerTypes, replace a use of CheckReferenceInit with an InitializationSequence
...
llvm-svn: 91542
2009-12-16 16:54:16 +00:00
Douglas Gregor
4044489d69
Update C++ status page to reflect reality
...
llvm-svn: 91541
2009-12-16 16:23:48 +00:00
Nuno Lopes
2af2af219f
fix PR5689: add support for 'o' and 'V' asm input operands
...
llvm-svn: 91540
2009-12-16 14:28:21 +00:00
Nuno Lopes
fdb8137a3e
fix build
...
llvm-svn: 91539
2009-12-16 14:20:08 +00:00
John McCall
5750077300
Shift things around so that it's easier to recover from a missing
...
function in a C++ call using an arbitrary call-expression type.
Actually exploit this to fix the recovery implemented earlier.
The diagnostic is still iffy, though.
llvm-svn: 91538
2009-12-16 12:17:52 +00:00
Daniel Dunbar
282c9b9cc1
Fix pretty stack traces.
...
llvm-svn: 91537
2009-12-16 11:47:38 +00:00
Zhongxing Xu
6df9f54d6d
Add a new kind of region: CXXObjectRegion. Currently it has only one
...
attribute: the object type.
Add initial support for visiting CXXThisExpr.
Fix a bunch of 80-col violations.
llvm-svn: 91535
2009-12-16 11:27:52 +00:00
John McCall
d681c3959f
Introduce a centralized routine in Sema for diagnosing failed lookups (when
...
used as expressions). In dependent contexts, try to recover by doing a lookup
in previously-dependent base classes. We get better diagnostics out, but
unfortunately the recovery fails: we need to turn it into a method call
expression, not a bare call expression. Thus this is still a WIP.
llvm-svn: 91525
2009-12-16 08:11:27 +00:00
Anders Carlsson
07863b8b6e
Use GetAddrOfRTTI everywhere and remove GenerateRTTI and GenerateRTTIRef. With this change, we can now compile and link TableGen.
...
llvm-svn: 91520
2009-12-16 07:05:41 +00:00