From 7c7e531f973e59b7db03476271c955bf9130df09 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 26 Oct 2018 03:21:20 +0000 Subject: PR31978: Don't crash if CodeGen sees a top-level BindingDecl. llvm-svn: 345362 --- clang/lib/CodeGen/CodeGenModule.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index e889b9ff328..3cc96af181d 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()) -- cgit v1.2.3