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:
84ac1de
)
DebugInfo: Remove unused conditional
author
David Blaikie
<dblaikie@gmail.com>
Thu, 15 Aug 2013 21:55:56 +0000
(21:55 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Thu, 15 Aug 2013 21:55:56 +0000
(21:55 +0000)
llvm-svn: 188494
clang/lib/CodeGen/CGDebugInfo.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDebugInfo.cpp
b/clang/lib/CodeGen/CGDebugInfo.cpp
index bdc60fb4183a516b031f025ce9da29b41b3a4ac6..339348ef707d239ae1c2c1d0defb30f0adfcd289 100644
(file)
--- a/
clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/
clang/lib/CodeGen/CGDebugInfo.cpp
@@
-875,9
+875,8
@@
CollectRecordStaticField(const VarDecl *Var,
llvm::DIFile VUnit = getOrCreateFile(Var->getLocation());
llvm::DIType VTy = getOrCreateType(Var->getType(), VUnit);
- // Do not describe enums as static members.
- if (VTy.getTag() == llvm::dwarf::DW_TAG_enumeration_type)
- return;
+ assert(VTy.getTag() == llvm::dwarf::DW_TAG_enumeration_type &&
+ "Do not describe enums as static members");
unsigned LineNumber = getLineNumber(Var->getLocation());
StringRef VName = Var->getName();