Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: src/IceCfg.cpp

Issue 2247253005: Subzero: Fix build errors with LLVM trunk. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index eace318238bdbc28c61e05fad28d411a84619f55..6e944ac0d08bd2746c6b454dc52415b892e73669 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -828,7 +828,7 @@ void Cfg::floatConstantCSE() {
auto Current = Node->getInsts().begin();
auto End = Node->getInsts().end();
while (Current != End) {
- CfgUnorderedMap<Constant *, CfgVector<Inst *>> FloatUses;
+ CfgUnorderedMap<Constant *, CfgVector<InstList::iterator>> FloatUses;
if (llvm::isa<InstCall>(iteratorToInst(Current))) {
++Current;
assert(Current != End);
@@ -868,7 +868,7 @@ void Cfg::floatConstantCSE() {
InstAssign::create(Node->getCfg(), NewVar, ConstCache[Pair.first]);
Insts.insert(Pair.second[0], Assign);
- for (auto *InstUse : Pair.second) {
+ for (auto InstUse : Pair.second) {
for (SizeT i = 0; i < InstUse->getSrcSize(); ++i) {
if (auto *Const = llvm::dyn_cast<Constant>(InstUse->getSrc(i))) {
if (Const == Pair.first) {
« no previous file with comments | « CMakeLists.txt ('k') | src/IceCompileServer.cpp » ('j') | src/IceTargetLoweringX86BaseImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698