DebugInfo: Remove some unneeded conditionals now that DIBuilder no longer emits zero...
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfUnit.cpp
index 0723eb85a28a36d99c253e8de043429736376b5b..a1db1e0a2ed0ffe78940cdf1666c95c8efa9cbbf 100644 (file)
@@ -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();