From 041b330a3204d894fe95b5bae6a740936a7ebc0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dieter=20N=C3=BCtzel?= Date: Thu, 28 Jul 2016 00:20:25 +0200 Subject: [PATCH] clover: make GCC 4.8 happy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Without this GCC 4.8.x throws below error: error: invalid initialization of non-const reference of type 'clover::llvm::compat::raw_ostream_to_emit_file {aka llvm::raw_svector_ostream&}' from an rvalue of type '' v2: change commit title and add error message like Eric Engestrom requested Signed-off-by: Dieter Nützel Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97019 [ Francisco Jerez: Trivial formatting fix. ] Reviewed-by: Francisco Jerez --- src/gallium/state_trackers/clover/llvm/codegen/native.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/clover/llvm/codegen/native.cpp b/src/gallium/state_trackers/clover/llvm/codegen/native.cpp index b96236b0897..4f24332f6b5 100644 --- a/src/gallium/state_trackers/clover/llvm/codegen/native.cpp +++ b/src/gallium/state_trackers/clover/llvm/codegen/native.cpp @@ -126,7 +126,7 @@ namespace { { compat::pass_manager pm; ::llvm::raw_svector_ostream os { data }; - compat::raw_ostream_to_emit_file fos { os }; + compat::raw_ostream_to_emit_file fos(os); mod.setDataLayout(compat::get_data_layout(*tm)); tm->Options.MCOptions.AsmVerbose = -- 2.30.2