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/IceInstX8632.cpp

Issue 429993002: Subzero: Try to fix warnings and errors in the Windows build. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 5 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/IceInstX8632.cpp
diff --git a/src/IceInstX8632.cpp b/src/IceInstX8632.cpp
index 7d930c2c69265fc81134f7d60ec4bef476db2cd8..f66ae50c381d253f2807baaf31025891978e7656 100644
--- a/src/IceInstX8632.cpp
+++ b/src/IceInstX8632.cpp
@@ -594,6 +594,7 @@ template <> void InstX8632Imul::emit(const Cfg *Func) const {
if (getDest()->getType() == IceType_i8) {
// The 8-bit version of imul only allows the form "imul r/m8".
Variable *Src0 = llvm::dyn_cast<Variable>(getSrc(0));
+ (void)Src0;
assert(Src0 && Src0->getRegNum() == TargetX8632::Reg_eax);
Str << "\timul\t";
getSrc(1)->emit(Func);
@@ -640,6 +641,7 @@ void InstX8632Shld::emit(const Cfg *Func) const {
getSrc(1)->emit(Func);
Str << ", ";
if (Variable *ShiftReg = llvm::dyn_cast<Variable>(getSrc(2))) {
+ (void)ShiftReg;
assert(ShiftReg->getRegNum() == TargetX8632::Reg_ecx);
Str << "cl";
} else {
@@ -665,6 +667,7 @@ void InstX8632Shrd::emit(const Cfg *Func) const {
getSrc(1)->emit(Func);
Str << ", ";
if (Variable *ShiftReg = llvm::dyn_cast<Variable>(getSrc(2))) {
+ (void)ShiftReg;
assert(ShiftReg->getRegNum() == TargetX8632::Reg_ecx);
Str << "cl";
} else {

Powered by Google App Engine
This is Rietveld 408576698