Don't assert when generating code with static_asserts.
llvm-svn: 73208
This commit is contained in:
parent
4bd5463617
commit
8783543a6f
|
@ -1481,7 +1481,11 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
|
|||
case Decl::CXXDestructor:
|
||||
EmitCXXDestructors(cast<CXXDestructorDecl>(D));
|
||||
break;
|
||||
|
||||
|
||||
case Decl::StaticAssert:
|
||||
// Nothing to do.
|
||||
break;
|
||||
|
||||
// Objective-C Decls
|
||||
|
||||
// Forward declarations, no (immediate) code generation.
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
// RUN: clang-cc %s -emit-llvm -o - -std=c++0x
|
||||
|
||||
static_assert(true, "");
|
Loading…
Reference in New Issue