summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit0a917b7ad46ba4a5be4931c0de4b7464a4d49efa (patch)
tree0ceee2ac11a01ded8e33ea76aabe9c904e663367 /llvm/lib
parent95d87908f9cae89a8873e0467d61053a683d4a72 (diff)
downloadbcm5719-llvm-0a917b7ad46ba4a5be4931c0de4b7464a4d49efa.tar.gz
bcm5719-llvm-0a917b7ad46ba4a5be4931c0de4b7464a4d49efa.zip
Initialize variable.
llvm-svn: 144360
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 1e5170949e6..159c096a7e8 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud