Fix assert added in r188494

llvm-svn: 188496
This commit is contained in:
David Blaikie 2013-08-15 22:18:13 +00:00
parent 89fe0d5842
commit b840c48de2
1 changed files with 1 additions and 1 deletions

View File

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