diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-10-26 03:21:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-10-26 03:21:20 +0000 |
commit | 7c7e531f973e59b7db03476271c955bf9130df09 (patch) | |
tree | 3790ac036fd5eaf23146855f79596484cca47fab /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 6a74bfba20489e3707673c393bf7a1495cd1506a (diff) | |
download | llvm-7c7e531f973e59b7db03476271c955bf9130df09.zip llvm-7c7e531f973e59b7db03476271c955bf9130df09.tar.gz llvm-7c7e531f973e59b7db03476271c955bf9130df09.tar.bz2 |
PR31978: Don't crash if CodeGen sees a top-level BindingDecl.
llvm-svn: 345362
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index e889b9f..3cc96af 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -4800,6 +4800,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) { case Decl::TypeAliasTemplate: case Decl::Block: case Decl::Empty: + case Decl::Binding: break; case Decl::Using: // using X; [C++] if (CGDebugInfo *DI = getModuleDebugInfo()) |