r188496 - Fix assert added in r188494
David Blaikie
dblaikie at gmail.com
Thu Aug 15 15:18:13 PDT 2013
Author: dblaikie
Date: Thu Aug 15 17:18:13 2013
New Revision: 188496
URL: http://llvm.org/viewvc/llvm-project?rev=188496&view=rev
Log:
Fix assert added in r188494
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=188496&r1=188495&r2=188496&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Thu Aug 15 17:18:13 2013
@@ -875,7 +875,7 @@ CollectRecordStaticField(const VarDecl *
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());
More information about the cfe-commits
mailing list