Skip to content

Commit

Permalink
Compilation fix (cmu-db#1439)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
pervazea authored and tli2 committed Jun 28, 2018
1 parent 40acdf6 commit 2b67714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codegen/interpreter/bytecode_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ void BytecodeBuilder::AnalyseFunction() {
// which are labeled and explained below.
for (llvm::BasicBlock::const_iterator instr_iterator = bb->begin();
instr_iterator != bb->end(); ++instr_iterator, ++instruction_index) {
const llvm::Instruction *instruction = instr_iterator;
const llvm::Instruction *instruction = &(*instr_iterator);

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

// Dispatch to the respective translator function
switch (instruction->getOpcode()) {
Expand Down

0 comments on commit 2b67714

Please sign in to comment.