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

Unified Diff: src/compiler/graph.cc

Issue 1178403004: [turbofan] Use appropriate type for NodeId. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix useless static_cast. Created 5 years, 6 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/compiler/graph.h ('k') | src/compiler/graph-reducer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph.cc
diff --git a/src/compiler/graph.cc b/src/compiler/graph.cc
index 193861187ba1f8aeec349c6787a7c4e133f55a5b..07bf2ba44eb7cdb068796d0ed179f628172c444c 100644
--- a/src/compiler/graph.cc
+++ b/src/compiler/graph.cc
@@ -53,7 +53,7 @@ Node* Graph::NewNode(const Operator* op, int input_count, Node** inputs,
NodeId Graph::NextNodeId() {
NodeId const id = next_node_id_;
- CHECK(!base::bits::SignedAddOverflow32(id, 1, &next_node_id_));
+ CHECK(!base::bits::UnsignedAddOverflow32(id, 1, &next_node_id_));
return id;
}
« no previous file with comments | « src/compiler/graph.h ('k') | src/compiler/graph-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698