diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-19 21:15:45 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-04-19 21:15:45 +0000 |
commit | ada0888a111750ff4caec49208d11de4e29bfb61 (patch) | |
tree | fd1606ebd8e92b999b11c98cf06d5de110c3169c /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 8aaa368d0018822734b462ade86797fab2de182f (diff) | |
download | llvm-ada0888a111750ff4caec49208d11de4e29bfb61.zip llvm-ada0888a111750ff4caec49208d11de4e29bfb61.tar.gz llvm-ada0888a111750ff4caec49208d11de4e29bfb61.tar.bz2 |
Fix assertion failure in codegen on non-template deduction guide.
llvm-svn: 300762
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d84c543..1920397 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -3794,6 +3794,10 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { AddDeferredUnusedCoverageMapping(D); break; + case Decl::CXXDeductionGuide: + // Function-like, but does not result in code emission. + break; + case Decl::Var: case Decl::Decomposition: // Skip variable templates |