Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 2b9fd96ee229c961dcadbf797bd41b16b9eced08..8332c1346a9468e212662bd93c588717a4e652a1 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -1058,7 +1058,7 @@ class HGraphBuilder { |
template<class I, class P1, class P2> |
I* Add(P1 p1, P2 p2) { |
- return static_cast<I*>(AddUncasted<I>(p1, p2)); |
+ return I::cast(AddUncasted<I>(p1, p2)); |
} |
template<class I, class P1, class P2, class P3> |