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

Unified Diff: src/IceTargetLoweringX8664Traits.h

Issue 1575873006: Subzero: Fix g++ warnings. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 11 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/IceTargetLoweringX8664Traits.h
diff --git a/src/IceTargetLoweringX8664Traits.h b/src/IceTargetLoweringX8664Traits.h
index bab08a181c41f2908ed3481f6741953c4b36db0a..87ca3db15d80dda54001ecb8f8e3124697fdebf9 100644
--- a/src/IceTargetLoweringX8664Traits.h
+++ b/src/IceTargetLoweringX8664Traits.h
@@ -132,7 +132,10 @@ struct TargetX8664Traits {
int32_t disp32() const {
assert(length_ >= 5);
- return bit_copy<int32_t>(encoding_[length_ - 4]);
+ // TODO(stichnot): This method is not currently used. Delete it along
+ // with other unused methods, or use a safe version of bitCopy().
+ llvm::report_fatal_error("Unexpected call to disp32()");
+ // return Utils::bitCopy<int32_t>(encoding_[length_ - 4]);
}
AssemblerFixup *fixup() const { return fixup_; }
« no previous file with comments | « src/IceTargetLoweringX8632Traits.h ('k') | src/IceTimerTree.cpp » ('j') | src/IceUtils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698