projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89fe0d5
)
Fix assert added in r188494
author
David Blaikie
<dblaikie@gmail.com>
Thu, 15 Aug 2013 22:18:13 +0000
(22:18 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Thu, 15 Aug 2013 22:18:13 +0000
(22:18 +0000)
llvm-svn: 188496
clang/lib/CodeGen/CGDebugInfo.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDebugInfo.cpp
b/clang/lib/CodeGen/CGDebugInfo.cpp
index 339348ef707d239ae1c2c1d0defb30f0adfcd289..9f138e7667de44df4ac19ffdd4d5ef02bf922b38 100644
(file)
--- 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());