aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-10-15 21:37:55 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-10-15 21:37:55 +0000
commitbbdd6c13dea74ce60a162780e20f052f5cab247c (patch)
treedd542c13cb0080622fd7a7f62111ffa3fe67bcfe /clang/lib/CodeGen/CodeGenModule.cpp
parent4c879bed5b1b79d98cfc3b45c4ee4d4a32ba8a32 (diff)
downloadllvm-bbdd6c13dea74ce60a162780e20f052f5cab247c.zip
llvm-bbdd6c13dea74ce60a162780e20f052f5cab247c.tar.gz
llvm-bbdd6c13dea74ce60a162780e20f052f5cab247c.tar.bz2
Sema: handle AttributedTypeLocs in C++14 auto deduction
When performing a type deduction from the return type, the FunctionDecl may be attributed with a calling convention. In such a case, the retrieved type location may be an AttributedTypeLoc. Performing a castAs<FunctionProtoTypeLoc> on such a type loc would result in an assertion as they are not derived types. Ensure that we correctly handle the attributed type location by looking through it to the modified type loc. Fixes an assertion triggered in C++14 mode. llvm-svn: 219851
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions