diff options
| author | 2012-08-13 11:45:05 +0800 | |
|---|---|---|
| committer | 2012-09-15 04:51:24 -0700 | |
| commit | e5b8f8b3eaef9871b8cea42cc8e98548754ac051 (patch) | |
| tree | 55bb8180e6139fc2e61c2f2d72410ef7142fd7a7 /src/compiler_llvm/gbc_expander.cc | |
| parent | 4ec8ccdaeee1c4af1a70e1ac0dd482e83df72f38 (diff) | |
Initialize GBCExpander with NULL.
Change-Id: If7b94cb900bddb763d8b95506232d24aaa3fb7f8
Diffstat (limited to 'src/compiler_llvm/gbc_expander.cc')
| -rw-r--r-- | src/compiler_llvm/gbc_expander.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler_llvm/gbc_expander.cc b/src/compiler_llvm/gbc_expander.cc index 672014cfd0..c28384a78a 100644 --- a/src/compiler_llvm/gbc_expander.cc +++ b/src/compiler_llvm/gbc_expander.cc @@ -54,7 +54,6 @@ class GBCExpanderPass : public llvm::FunctionPass { uint32_t shadow_frame_size_; private: - // TODO: Init these fields Compiler* compiler_; const DexFile* dex_file_; @@ -341,7 +340,12 @@ class GBCExpanderPass : public llvm::FunctionPass { GBCExpanderPass(const IntrinsicHelper& intrinsic_helper, IRBuilder& irb) : llvm::FunctionPass(ID), intrinsic_helper_(intrinsic_helper), irb_(irb), - context_(irb.getContext()), rtb_(irb.Runtime()) + context_(irb.getContext()), rtb_(irb.Runtime()), + + // TODO: Initialize these fields correctly. + shadow_frame_(NULL), old_shadow_frame_(NULL), shadow_frame_size_(0), + compiler_(NULL), dex_file_(NULL), dex_cache_(NULL), code_item_(NULL), + oat_compilation_unit_(NULL), method_idx_(-1u), func_(NULL) { } bool runOnFunction(llvm::Function& func); |