瀏覽代碼

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

hughsando 10 年之前
父節點
當前提交
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