aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-22 00:40:26 +0000
committerChris Lattner <sabre@nondot.org>2010-06-22 00:40:26 +0000
commit60bb7c42a770bc4c02c47a228a9b33c17537242d (patch)
tree361cc613b58fc6a132de939f85eca696241cc719 /llvm/lib/Target/CppBackend/CPPBackend.cpp
parent851e478e6bc21e90e41343a3767c845ff6294dd2 (diff)
downloadllvm-60bb7c42a770bc4c02c47a228a9b33c17537242d.zip
llvm-60bb7c42a770bc4c02c47a228a9b33c17537242d.tar.gz
llvm-60bb7c42a770bc4c02c47a228a9b33c17537242d.tar.bz2
make sure to initialize indent_level
llvm-svn: 106513
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--llvm/lib/Target/CppBackend/CPPBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp
index da63b1e..27fa319 100644
--- a/llvm/lib/Target/CppBackend/CPPBackend.cpp
+++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp
@@ -104,7 +104,7 @@ namespace {
public:
static char ID;
explicit CppWriter(formatted_raw_ostream &o) :
- ModulePass(&ID), Out(o), uniqueNum(0), is_inline(false) {}
+ ModulePass(&ID), Out(o), uniqueNum(0), is_inline(false), indent_level(0){}
virtual const char *getPassName() const { return "C++ backend"; }