Fix PR19239 - Add support for generating debug info for functions without lexical...
[oota-llvm.git] / lib / CodeGen / AsmPrinter / WinCodeViewLineTables.h
index 1f34c987cf3b44e1a68f0ed12877ccdf38cb0a6f..a7a62053c3e5d5f83ba43023256eb8f3fff0c74a 100644 (file)
@@ -32,13 +32,13 @@ namespace llvm {
 class WinCodeViewLineTables : public AsmPrinterHandler {
   AsmPrinter *Asm;
   DebugLoc PrevInstLoc;
-  LexicalScopes LScopes;
 
   // For each function, store a vector of labels to its instructions, as well as
   // to the end of the function.
   struct FunctionInfo {
     SmallVector<MCSymbol *, 10> Instrs;
     MCSymbol *End;
+    FunctionInfo() : End(0) {}
   } *CurFn;
 
   typedef DenseMap<const Function *, FunctionInfo> FnDebugInfoTy;