[Mesa-dev] [Patch v2] clover: make GCC 4.8 happy

Francisco Jerez currojerez at riseup.net
Thu Jul 28 03:41:28 UTC 2016


Dieter Nützel <Dieter at nuetzel-hh.de> writes:

> Can someone of you commit for me after review, please.

Reviewed-by and pushed, thanks.

>
> Thanks,
>    Dieter
>
> Am 28.07.2016 00:20, schrieb Dieter Nützel:
>> 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 '<brace-enclosed initializer list>'
>> 
>> v2: change commit title and add error message like Eric Engestrom 
>> requested
>> 
>> Signed-off-by: Dieter Nützel <Dieter at nuetzel-hh.de>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97019
>> ---
>>  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 b96236b..f5e887e 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 =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160727/5017d117/attachment.sig>


More information about the mesa-dev mailing list