Richard Smith
7509ea64df
PR18152: When computing the semantic form for an initializer list, keep track
...
of whether the initializer list is dependent.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196558 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-06 01:27:24 +00:00
Richard Smith
891be43ecf
PR10837: Warn if a null pointer constant is formed by a zero integer constant
...
expression that is not a zero literal, in C. This is a different, and more
targeted, approach than that in r194540.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195303 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-21 01:53:02 +00:00
Eli Friedman
f91e86c946
Fix crash with cast of value-dependent expr.
...
We don't really need to perform semantic analysis on the dependent expression
anyway, so just call the cast dependent.
<rdar://problem/15012610>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190981 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-19 01:12:33 +00:00
Andy Gibbs
8e8fb3be5b
Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166280 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-19 12:44:48 +00:00
Douglas Gregor
14af91a38c
Don't try to compute the value of a value-dependent expression when
...
checking trivial comparisons. Fixes PR8795.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122322 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-21 07:22:56 +00:00
John McCall
9b4b9d6d22
Fix another case of giving the wrong value kind to a dependent cast to
...
a non-dependent type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120384 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-30 02:05:44 +00:00
John McCall
a21e06cb62
For internal consistency's sake, compute the value kind of a dependent cast
...
based on the known properties of the casted-to type. Fixes a crash on spirit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120180 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-26 10:57:22 +00:00
Eli Friedman
787b094695
PR7724: Don't try to evaluate value-dependent expressions.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109532 91177308-0d34-0410-b5e6-96231b3b80d8
2010-07-27 19:14:53 +00:00
Douglas Gregor
fb2db4657d
Don't look for a destructor in a dependent type. Fixes PR7198.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104445 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-22 17:12:29 +00:00
Douglas Gregor
501edb6a54
When determining whether a DeclRefExpr is value-dependent when it
...
references a const variable of integral type, the initializer may be
in a different declaration than the one that name-lookup saw. Find the
initializer anyway. Fixes PR6045.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93514 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-15 16:21:02 +00:00
Eli Friedman
4df6ec10e0
Test for PR5908.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92282 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-30 00:20:14 +00:00