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

Unified Diff: src/IceRegistersX8632.h

Issue 1676123002: Subzero: Use a proper RegNumT type instead of int32_t/SizeT. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make it possible to do "auto NewReg = RegNumT::NoRegister;" Created 4 years, 10 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
« no previous file with comments | « src/IceRegistersMIPS32.h ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceRegistersX8632.h
diff --git a/src/IceRegistersX8632.h b/src/IceRegistersX8632.h
index 5d71aa70a7612564922d319ae6eb4f906645b23c..bb614e0c905bff72733a57d42778aed2272e82ff 100644
--- a/src/IceRegistersX8632.h
+++ b/src/IceRegistersX8632.h
@@ -80,10 +80,10 @@ public:
Encoded_Not_X87STReg = -1
};
- static inline X87STRegister getEncodedSTReg(int32_t RegNum) {
- assert(Encoded_X87ST_First <= RegNum);
- assert(RegNum <= Encoded_X87ST_Last);
- return X87STRegister(RegNum);
+ static inline X87STRegister getEncodedSTReg(uint32_t X87RegNum) {
+ assert(int(Encoded_X87ST_First) <= int(X87RegNum));
+ assert(X87RegNum <= Encoded_X87ST_Last);
+ return X87STRegister(X87RegNum);
}
};
« no previous file with comments | « src/IceRegistersMIPS32.h ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698