From: bmeurer@chromium.org Date: Wed, 10 Sep 2014 08:32:23 +0000 (+0000) Subject: [turbofan] Correctly use bit_cast instead of static_cast. X-Git-Tag: upstream/4.7.83~7022 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e42316deb71f9a674bbe233282eb7ddc2f5273f;p=platform%2Fupstream%2Fv8.git [turbofan] Correctly use bit_cast instead of static_cast. R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/559913003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23825 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/compiler/simplified-operator-reducer.h b/src/compiler/simplified-operator-reducer.h index 35ae34f36..b75c80dde 100644 --- a/src/compiler/simplified-operator-reducer.h +++ b/src/compiler/simplified-operator-reducer.h @@ -32,7 +32,7 @@ class SimplifiedOperatorReducer FINAL : public Reducer { Reduction ReplaceFloat64(double value); Reduction ReplaceInt32(int32_t value); Reduction ReplaceUint32(uint32_t value) { - return ReplaceInt32(static_cast(value)); + return ReplaceInt32(bit_cast(value)); } Reduction ReplaceNumber(double value); Reduction ReplaceNumber(int32_t value);