diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-15 22:18:13 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-15 22:18:13 +0000 |
commit | b840c48de245c04ad77141fc6b42e622c94ae332 (patch) | |
tree | 7d56d9a4621bdb213024d1edea143a6f97f5aaea /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 89fe0d5842469f231c2a0649ff6d88ade892e6e8 (diff) | |
download | bcm5719-llvm-b840c48de245c04ad77141fc6b42e622c94ae332.tar.gz bcm5719-llvm-b840c48de245c04ad77141fc6b42e622c94ae332.zip |
Fix assert added in r188494
llvm-svn: 188496
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 |
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()); |