diff options
author | Sam McCall <sam.mccall@gmail.com> | 2019-05-08 05:49:42 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2019-05-08 05:49:42 +0000 |
commit | 835d67f6c7e78dd730d9ab7e55af23612d644067 (patch) | |
tree | 49bd0d76b1c4f8a7dd656d6227db47189e93b9af /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 0a753938db3b2db756b6c535c2127d4efaaa0b40 (diff) | |
download | llvm-835d67f6c7e78dd730d9ab7e55af23612d644067.zip llvm-835d67f6c7e78dd730d9ab7e55af23612d644067.tar.gz llvm-835d67f6c7e78dd730d9ab7e55af23612d644067.tar.bz2 |
[Sema] Correct typos in return statements so the return types of 'auto' functions are always deduced.
Summary:
e.g.
auto foo() {
return no_such_thing; // Return value is a TypoExpr
}
using T = decltype(foo()); // Uh-oh, undeduced auto.
Reviewers: rsmith
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61649
llvm-svn: 360224
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions