mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 04:46:27 +08:00
PR31978: Don't crash if CodeGen sees a top-level BindingDecl.
llvm-svn: 345362
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %clang_cc1 -std=c++1z %s -verify -fcxx-exceptions
|
||||
// RUN: not %clang_cc1 -std=c++1z %s -emit-llvm-only -fcxx-exceptions
|
||||
|
||||
struct S { int a, b, c; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user