diff options
author | 2014-02-10 09:46:37 -0800 | |
---|---|---|
committer | 2014-02-10 09:48:50 -0800 | |
commit | 093713f916bfaaf32413b80334a9997bcadddc4c (patch) | |
tree | fdcba42b06388b1307584f9b9597700e524a763d | |
parent | 7dff39ef84ffc51593b19c095070867cf864c9d7 (diff) |
Fix Portable build
(cherry picked from commit e00e20a961ce50cd288c053c1210aa5863f4378e)
Change-Id: Id416ea15d8134d25cddd3df9278c7c271c80defc
-rw-r--r-- | compiler/elf_writer_mclinker.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/elf_writer_mclinker.cc b/compiler/elf_writer_mclinker.cc index 3c3d09eac5..c7baf4f3e5 100644 --- a/compiler/elf_writer_mclinker.cc +++ b/compiler/elf_writer_mclinker.cc @@ -269,8 +269,8 @@ void ElfWriterMclinker::AddCompiledCodeInput(const CompiledCode& compiled_code) // TODO: ownership of code_input? // TODO: why does IRBuilder::ReadInput take a non-const pointer? mcld::Input* code_input = ir_builder_->ReadInput(symbol, - const_cast<uint8_t*>(&code[0]), - code.size()); + const_cast<uint8_t*>(&(*code)[0]), + code->size()); CHECK(code_input != NULL); } |