projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
DebugInfo: Remove some unneeded conditionals now that DIBuilder no longer emits zero...
[oota-llvm.git]
/
lib
/
CodeGen
/
AsmPrinter
/
DwarfUnit.cpp
diff --git
a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
index 0723eb85a28a36d99c253e8de043429736376b5b..a1db1e0a2ed0ffe78940cdf1666c95c8efa9cbbf 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
@@
-1532,8
+1532,7
@@
void DwarfCompileUnit::createGlobalVariableDIE(DIGlobalVariable GV) {
if (getDIE(GV))
return;
- if (!GV.isGlobalVariable())
- return;
+ assert(GV.isGlobalVariable());
DIScope GVContext = GV.getContext();
DIType GTy = GV.getType();