Index: runtime/vm/intermediate_language.cc |
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc |
index 3e6487d564c533d8f800de9e422e2475fefa435f..c68f277692311605272ee04f5a0cced09fcf3624 100644 |
--- a/runtime/vm/intermediate_language.cc |
+++ b/runtime/vm/intermediate_language.cc |
@@ -3510,7 +3510,8 @@ Definition* StringInterpolateInstr::Canonicalize(FlowGraph* flow_graph) { |
pieces.SetAt(store_index, String::Cast(obj)); |
} else if (obj.IsSmi()) { |
const char* cstr = obj.ToCString(); |
- pieces.SetAt(store_index, String::Handle(zone, String::New(cstr))); |
+ pieces.SetAt(store_index, |
+ String::Handle(zone, String::New(cstr, Heap::kOld))); |
} else if (obj.IsBool()) { |
pieces.SetAt(store_index, |
Bool::Cast(obj).value() ? Symbols::True() : Symbols::False()); |