DebugInfo: Remove unused conditional
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 15 Aug 2013 21:55:56 +0000 (21:55 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 15 Aug 2013 21:55:56 +0000 (21:55 +0000)
llvm-svn: 188494

clang/lib/CodeGen/CGDebugInfo.cpp

index bdc60fb4183a516b031f025ce9da29b41b3a4ac6..339348ef707d239ae1c2c1d0defb30f0adfcd289 100644 (file)
@@ -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();