[llvm-commits] [llvm] r144360 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Eric Christopher
echristo at apple.com
Thu Nov 10 19:16:32 PST 2011
Author: echristo
Date: Thu Nov 10 21:16:32 2011
New Revision: 144360
URL: http://llvm.org/viewvc/llvm-project?rev=144360&view=rev
Log:
Initialize variable.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=144360&r1=144359&r2=144360&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Thu Nov 10 21:16:32 2011
@@ -19,6 +19,7 @@
#include "llvm/GlobalVariable.h"
#include "llvm/Instructions.h"
#include "llvm/Analysis/DIBuilder.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Target/Mangler.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetFrameLowering.h"
@@ -1095,7 +1096,7 @@
addToContextOwner(VariableDIE, GVContext);
// Add location.
bool addToAccelTable = false;
- DIE *VariableSpecDIE;
+ DIE *VariableSpecDIE = NULL;
if (isGlobalVariable) {
addToAccelTable = true;
DIEBlock *Block = new (DIEValueAllocator) DIEBlock();
More information about the llvm-commits
mailing list