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

Commit

Permalink
- Fix for compilation error (from Marcel)
Browse files Browse the repository at this point in the history
  • Loading branch information
pervazea committed Jun 28, 2018
1 parent c7594be commit af02bf0
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 af02bf0

Please sign in to comment.