DebugInfo: Remove unused conditional

llvm-svn: 188494
This commit is contained in:
David Blaikie 2013-08-15 21:55:56 +00:00
parent 84ac1ded83
commit 35b22f6985
1 changed files with 2 additions and 3 deletions

View 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();