Subzero: Update for LLVM 3.9 (trunk).
The purpose is to allow pnacl-sz to be built within an LLVM checkout (version 3.9 or later), and not require the complex PNaCl build environment.
Within an LLVM checkout, one would do something like the following:
cd projects
git clone https://chromium.googlesource.com/native_client/pnacl-subzero
# change to LLVM build directory
cmake -G "Ninja" <path_to_llvm_source_dir>
ninja
A follow-on CL will add in the PNaCl bitcode reader source files that are needed for compiling and linking.
BUG= none
R=jpp@chromium.org
Review URL: https://codereview.chromium.org/1961743002 .
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index 88de3d5..dcba5ce 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -79,13 +79,13 @@
Inst *getNextInst() const {
if (Next == End)
return nullptr;
- return Next;
+ return iteratorToInst(Next);
}
Inst *getNextInst(InstList::iterator &Iter) const {
advanceForward(Iter);
if (Iter == End)
return nullptr;
- return Iter;
+ return iteratorToInst(Iter);
}
CfgNode *getNode() const { return Node; }
bool atEnd() const { return Cur == End; }