Fix assert added in r188494
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 15 Aug 2013 22:18:13 +0000 (22:18 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 15 Aug 2013 22:18:13 +0000 (22:18 +0000)
llvm-svn: 188496

clang/lib/CodeGen/CGDebugInfo.cpp

index 339348ef707d239ae1c2c1d0defb30f0adfcd289..9f138e7667de44df4ac19ffdd4d5ef02bf922b38 100644 (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());