summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 339348ef707..9f138e7667d 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -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());
OpenPOWER on IntegriCloud