diff options
author | Sean Callanan <scallanan@apple.com> | 2011-07-08 00:39:14 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-07-08 00:39:14 +0000 |
commit | 77eaf442ce46fbeb996a9af2e979088223852c09 (patch) | |
tree | ae765482c044c4b56b38921ed3de76d4911b7ff2 /lldb/source/Expression/ASTResultSynthesizer.cpp | |
parent | d9761cd4662c058951945250fb5a0c5973890a9e (diff) | |
download | bcm5719-llvm-77eaf442ce46fbeb996a9af2e979088223852c09.tar.gz bcm5719-llvm-77eaf442ce46fbeb996a9af2e979088223852c09.zip |
Audited the expression parser to find uninitialized
pointers. Some of the spots are obviously initialized
later, but it's better just to NULL the pointers out
at initialization to make the code more robust when
exposed to later changes.
llvm-svn: 134670
Diffstat (limited to 'lldb/source/Expression/ASTResultSynthesizer.cpp')
-rw-r--r-- | lldb/source/Expression/ASTResultSynthesizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ASTResultSynthesizer.cpp b/lldb/source/Expression/ASTResultSynthesizer.cpp index bae92766f2a..0286f7ad261 100644 --- a/lldb/source/Expression/ASTResultSynthesizer.cpp +++ b/lldb/source/Expression/ASTResultSynthesizer.cpp @@ -309,7 +309,7 @@ ASTResultSynthesizer::SynthesizeBodyResult (CompoundStmt *Body, log->Printf("Last statement is an %s with type: %s", (is_lvalue ? "lvalue" : "rvalue"), s.c_str()); } - clang::VarDecl *result_decl; + clang::VarDecl *result_decl = NULL; if (is_lvalue) { |