Closed pervazea closed 6 years ago
Changing the line to const llvm::Instruction *instruction = &(*instr_iterator);
makes it work.
The problem: &(* ... )
is technically the identity. In this case however, the *
operator in the iterator is overloaded to return an object reference, from which we want the pointer. Most compiler understand what to do because of the requested destination type. For some compiler configurations however this doesn't seem to work.
On my laptop.
Environment: