| Index: runtime/vm/flow_graph_type_propagator.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_type_propagator.cc (revision 31282)
|
| +++ runtime/vm/flow_graph_type_propagator.cc (working copy)
|
| @@ -874,8 +874,13 @@
|
| }
|
|
|
|
|
| -CompileType StringFromCharCodeInstr::ComputeType() const {
|
| - return CompileType::FromCid(cid_);
|
| +CompileType StringCharCodeInstr::ComputeType() const {
|
| + if (kind() == StringCharCodeInstr::kFromCharCode) {
|
| + return CompileType::FromCid(cid_);
|
| + } else {
|
| + ASSERT(kind() == StringCharCodeInstr::kToCharCode);
|
| + return CompileType::FromCid(kSmiCid);
|
| + }
|
| }
|
|
|
|
|
|
|