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

Unified Diff: src/IceInst.cpp

Issue 539743002: Subzero: Render constants in dump() to be more like LLVM. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 3 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/IceConverter.cpp ('k') | src/IceOperand.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.cpp
diff --git a/src/IceInst.cpp b/src/IceInst.cpp
index a3d4ee68ab4896fc59a9d5885c0b49512e299a12..cfcaad3b1fe8e6185cc485d6c78d3d807001862d 100644
--- a/src/IceInst.cpp
+++ b/src/IceInst.cpp
@@ -663,8 +663,8 @@ void InstSwitch::dump(const Cfg *Func) const {
getSrc(0)->dump(Func);
Str << ", label %" << getLabelDefault()->getName() << " [\n";
for (SizeT I = 0; I < getNumCases(); ++I) {
- Str << " " << Ty << " " << getValue(I) << ", label %"
- << getLabel(I)->getName() << "\n";
+ Str << " " << Ty << " " << static_cast<int64_t>(getValue(I))
+ << ", label %" << getLabel(I)->getName() << "\n";
}
Str << " ]";
}
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceOperand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698