[torque]: Fix bug uncovered by Netflix in Canary

Bug: chromium:852685
Change-Id: I0bb6cf433a5ea0a91d77048d3eef0d8077b8208e
Reviewed-on: https://chromium-review.googlesource.com/1102433
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Daniel Clifford <danno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53766}
This commit is contained in:
Daniel Clifford 2018-06-15 14:30:38 +02:00 committed by Commit Bot
parent 5b4e8db550
commit 267a639b12

View File

@ -356,7 +356,7 @@ from_constexpr<intptr>(i: constexpr int32): intptr {
return IntPtrConstant(i);
}
from_constexpr<int32>(i: constexpr int32): int32 {
return Int32Constant(2);
return Int32Constant(i);
}
from_constexpr<word32>(i: constexpr int32): word32 {
return from_constexpr<int32>(i);