summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-08-21 11:45:27 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-08-21 11:45:27 +0000
commit90f54229545e955d2e8ab37c25b6c2e88ec5a271 (patch)
treeddb2010868284271edf28fe91724ddf2f50f39cc /llvm/lib
parent33d447a2d6fc0f97ed5f502c6dd2eca0a88be251 (diff)
downloadbcm5719-llvm-90f54229545e955d2e8ab37c25b6c2e88ec5a271.tar.gz
bcm5719-llvm-90f54229545e955d2e8ab37c25b6c2e88ec5a271.zip
Sema: Use the right type for PredefinedExpr when it's in a lambda.
1. We now print the return type of lambdas and return type deduced functions as "auto". Trailing return types with decltype print the underlying type. 2. Use the lambda or block scope for the PredefinedExpr type instead of the parent function. This fixes PR16946, a strange mismatch between type of the expression and the actual result. 3. Verify the type in CodeGen. 4. The type for blocks is still wrong. They are numbered and the name is not known until CodeGen. llvm-svn: 188900
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud