Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 2b67714

Browse files
pervazeatli2
authored andcommitted
Compilation fix (#1439)
* Fix for python-six upgrade problem Uninstall python-six on Ubuntu 14.04 so new version can be installed during tensorflow and dependencies install * - Fix for compilation error (from Marcel)
1 parent 40acdf6 commit 2b67714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen/interpreter/bytecode_builder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ void BytecodeBuilder::AnalyseFunction() {
488488
// which are labeled and explained below.
489489
for (llvm::BasicBlock::const_iterator instr_iterator = bb->begin();
490490
instr_iterator != bb->end(); ++instr_iterator, ++instruction_index) {
491-
const llvm::Instruction *instruction = instr_iterator;
491+
const llvm::Instruction *instruction = &(*instr_iterator);
492492

493493
bool is_non_zero_gep = false;
494494
if (instruction->getOpcode() == llvm::Instruction::GetElementPtr &&
@@ -828,7 +828,7 @@ void BytecodeBuilder::TranslateFunction() {
828828
// Interate all instruction in the basic block
829829
for (llvm::BasicBlock::const_iterator instr_iterator = bb->begin();
830830
instr_iterator != bb->end(); ++instr_iterator) {
831-
const llvm::Instruction *instruction = instr_iterator;
831+
const llvm::Instruction *instruction = &(*instr_iterator);
832832

833833
// Dispatch to the respective translator function
834834
switch (instruction->getOpcode()) {

0 commit comments

Comments
 (0)