From 409ab5670cf10fa2b9af2814d6c9b0c2f96a3615 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 15 Aug 2013 21:55:56 +0000 Subject: [PATCH] DebugInfo: Remove unused conditional git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188494 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index bdc60fb418..339348ef70 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -875,9 +875,8 @@ CollectRecordStaticField(const VarDecl *Var, llvm::DIFile VUnit = getOrCreateFile(Var->getLocation()); llvm::DIType VTy = getOrCreateType(Var->getType(), VUnit); - // Do not describe enums as static members. - if (VTy.getTag() == llvm::dwarf::DW_TAG_enumeration_type) - return; + assert(VTy.getTag() == llvm::dwarf::DW_TAG_enumeration_type && + "Do not describe enums as static members"); unsigned LineNumber = getLineNumber(Var->getLocation()); StringRef VName = Var->getName(); -- 2.40.0