Don't assert when generating code with static_asserts.

llvm-svn: 73208
This commit is contained in:
Anders Carlsson 2009-06-11 21:22:55 +00:00
parent 4bd5463617
commit 8783543a6f
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -0,0 +1,3 @@
// RUN: clang-cc %s -emit-llvm -o - -std=c++0x
static_assert(true, "");