[llvm] r315596 - AMDGPU: Fix warnings introduced in r315526
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 10:34:05 PDT 2017
Author: kzhuravl
Date: Thu Oct 12 10:34:05 2017
New Revision: 315596
URL: http://llvm.org/viewvc/llvm-project?rev=315596&view=rev
Log:
AMDGPU: Fix warnings introduced in r315526
Modified:
llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUHSAMetadataStreamer.cpp
llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUHSAMetadataStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUHSAMetadataStreamer.cpp?rev=315596&r1=315595&r2=315596&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUHSAMetadataStreamer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUHSAMetadataStreamer.cpp Thu Oct 12 10:34:05 2017
@@ -398,7 +398,7 @@ void MetadataStreamer::begin(const Modul
void MetadataStreamer::end() {
std::string HSAMetadataString;
- if (auto Error = toString(HSAMetadata, HSAMetadataString))
+ if (toString(HSAMetadata, HSAMetadataString))
return;
if (DumpHSAMetadata)
Modified: llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp?rev=315596&r1=315595&r2=315596&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp Thu Oct 12 10:34:05 2017
@@ -44,7 +44,7 @@ AMDGPUTargetStreamer::AMDGPUTargetStream
bool AMDGPUTargetStreamer::EmitHSAMetadata(StringRef HSAMetadataString) {
HSAMD::Metadata HSAMetadata;
- if (auto Error = HSAMD::fromString(HSAMetadataString, HSAMetadata))
+ if (HSAMD::fromString(HSAMetadataString, HSAMetadata))
return false;
return EmitHSAMetadata(HSAMetadata);
@@ -97,7 +97,7 @@ void AMDGPUTargetAsmStreamer::EmitAMDGPU
bool AMDGPUTargetAsmStreamer::EmitHSAMetadata(
const AMDGPU::HSAMD::Metadata &HSAMetadata) {
std::string HSAMetadataString;
- if (auto Error = HSAMD::toString(HSAMetadata, HSAMetadataString))
+ if (HSAMD::toString(HSAMetadata, HSAMetadataString))
return false;
OS << '\t' << HSAMD::AssemblerDirectiveBegin << '\n';
@@ -109,7 +109,7 @@ bool AMDGPUTargetAsmStreamer::EmitHSAMet
bool AMDGPUTargetAsmStreamer::EmitPALMetadata(
const PALMD::Metadata &PALMetadata) {
std::string PALMetadataString;
- if (auto Error = PALMD::toString(PALMetadata, PALMetadataString))
+ if (PALMD::toString(PALMetadata, PALMetadataString))
return false;
OS << '\t' << PALMD::AssemblerDirective << PALMetadataString << '\n';
@@ -211,7 +211,7 @@ void AMDGPUTargetELFStreamer::EmitAMDGPU
bool AMDGPUTargetELFStreamer::EmitHSAMetadata(
const AMDGPU::HSAMD::Metadata &HSAMetadata) {
std::string HSAMetadataString;
- if (auto Error = HSAMD::toString(HSAMetadata, HSAMetadataString))
+ if (HSAMD::toString(HSAMetadata, HSAMetadataString))
return false;
// Create two labels to mark the beginning and end of the desc field
More information about the llvm-commits
mailing list