summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-11-11 03:16:32 +0000
committerEric Christopher <echristo@apple.com>2011-11-11 03:16:32 +0000
commitd61c34ba30888c49f4f223422f30b018a41594da (patch)
tree4e96f0bd0688470b313349c425a04457abcd9e61 /lib
parent646abbfa30f881b5183b62e77a185fc48d9d82bd (diff)
downloadllvm-d61c34ba30888c49f4f223422f30b018a41594da.tar.gz
llvm-d61c34ba30888c49f4f223422f30b018a41594da.tar.bz2
llvm-d61c34ba30888c49f4f223422f30b018a41594da.tar.xz
Initialize variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 1e5170949e..159c096a7e 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -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 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) {
addToContextOwner(VariableDIE, GVContext);
// Add location.
bool addToAccelTable = false;
- DIE *VariableSpecDIE;
+ DIE *VariableSpecDIE = NULL;
if (isGlobalVariable) {
addToAccelTable = true;
DIEBlock *Block = new (DIEValueAllocator) DIEBlock();