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

Unified Diff: src/IceTargetLoweringX8632Traits.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/IceTargetLoweringX8632Traits.h
diff --git a/src/IceTargetLoweringX8632Traits.h b/src/IceTargetLoweringX8632Traits.h
index 00ea2d91cce1de6df2b2c935b27d5e3c9af07b77..c9121601ad6340e6187306a3e63c2df227bfbd54 100644
--- a/src/IceTargetLoweringX8632Traits.h
+++ b/src/IceTargetLoweringX8632Traits.h
@@ -116,7 +116,10 @@ struct TargetX8632Traits {
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_; }

Powered by Google App Engine
This is Rietveld 408576698