optimizing_compiler: Avoid extra std::string copy
am: e7e195db8e

Change-Id: I47bd9a2e8ed4430fab486b9786f5fc46c9126297