From b840c48de245c04ad77141fc6b42e622c94ae332 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 15 Aug 2013 22:18:13 +0000 Subject: [PATCH] Fix assert added in r188494 llvm-svn: 188496 --- clang/lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 339348ef707d..9f138e7667de 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -875,7 +875,7 @@ CollectRecordStaticField(const VarDecl *Var, llvm::DIFile VUnit = getOrCreateFile(Var->getLocation()); llvm::DIType VTy = getOrCreateType(Var->getType(), VUnit); - assert(VTy.getTag() == llvm::dwarf::DW_TAG_enumeration_type && + assert(VTy.getTag() != llvm::dwarf::DW_TAG_enumeration_type && "Do not describe enums as static members"); unsigned LineNumber = getLineNumber(Var->getLocation());