diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-09 19:17:44 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-09 19:17:44 +0000 |
commit | 60437620db8efae20e880c3a70933f6e8149dc7c (patch) | |
tree | 25e4f211469fcc36ffba57cf477aed2e59d28c0f /clang/lib/Sema/SemaCast.cpp | |
parent | a18ef6f1f9d2a32519192feedadb7814461db488 (diff) | |
download | bcm5719-llvm-60437620db8efae20e880c3a70933f6e8149dc7c.tar.gz bcm5719-llvm-60437620db8efae20e880c3a70933f6e8149dc7c.zip |
[c++1z] P0091R3: Basic support for deducing class template arguments via deduction-guides.
llvm-svn: 294613
Diffstat (limited to 'clang/lib/Sema/SemaCast.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCast.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCast.cpp b/clang/lib/Sema/SemaCast.cpp index 6f9852aaf53..39e85e76d6f 100644 --- a/clang/lib/Sema/SemaCast.cpp +++ b/clang/lib/Sema/SemaCast.cpp @@ -2627,11 +2627,12 @@ ExprResult Sema::BuildCStyleCastExpr(SourceLocation LPLoc, } ExprResult Sema::BuildCXXFunctionalCastExpr(TypeSourceInfo *CastTypeInfo, + QualType Type, SourceLocation LPLoc, Expr *CastExpr, SourceLocation RPLoc) { assert(LPLoc.isValid() && "List-initialization shouldn't get here."); - CastOperation Op(*this, CastTypeInfo->getType(), CastExpr); + CastOperation Op(*this, Type, CastExpr); Op.DestRange = CastTypeInfo->getTypeLoc().getSourceRange(); Op.OpRange = SourceRange(Op.DestRange.getBegin(), CastExpr->getLocEnd()); |