From 327a36aea71e109d1ebd9c6fc142b1c237dd3c96 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188496 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 339348ef70..9f138e7667 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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()); -- 2.40.0