2
0
Эх сурвалжийг харах

[cpp] Do not store array values in temp variables in case this causes a copy operation.

hughsando 10 жил өмнө
parent
commit
88800484e1
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      analyzer.ml

+ 1 - 0
analyzer.ml

@@ -236,6 +236,7 @@ module Simplifier = struct
 			with Exit ->
 				begin match follow e.etype with
 					| TAbstract({a_path = [],"Void"},_) -> true
+					| TInst ({ cl_path = [],"Array" }, _) when com.platform = Cpp -> true
 					| _ -> false
 				end
 		in