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

Unified Diff: src/PNaClTranslator.cpp

Issue 773583004: Subzero: Fix the g++ build (e.g. Windows). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years 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
« src/IceOperand.cpp ('K') | « src/IceOperand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/PNaClTranslator.cpp
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp
index 3f14ae028b3fedc639e3d42b9d33e7f0cc59c953..b74de0a999f908813535bfab8189e582ed05557f 100644
--- a/src/PNaClTranslator.cpp
+++ b/src/PNaClTranslator.cpp
@@ -1681,6 +1681,8 @@ private:
Cond = Ice::InstIcmp::Sle;
return true;
default:
+ // Make sure Cond is always initialized.
+ Cond = static_cast<Ice::InstIcmp::ICond>(0);
return false;
}
}
@@ -1739,6 +1741,8 @@ private:
Cond = Ice::InstFcmp::True;
return true;
default:
+ // Make sure Cond is always initialized.
+ Cond = static_cast<Ice::InstFcmp::FCond>(0);
return false;
}
}
« src/IceOperand.cpp ('K') | « src/IceOperand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698