Skip to content

Commit 55fad5e

Browse files
committed
[amdgpu-arch] Fix unused StringRef result
1 parent 42ed775 commit 55fad5e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "llvm/Support/MemoryBuffer.h"
1818
#include "llvm/Support/Path.h"
1919
#include <memory>
20-
#include <string>
2120

2221
using namespace llvm;
2322

@@ -55,8 +54,8 @@ int printGPUsByKFD() {
5554
++Lines) {
5655
StringRef Line(*Lines);
5756
if (Line.consume_front("gfx_target_version")) {
58-
Line.drop_while([](char C) { return std::isspace(C); });
59-
if (Line.consumeInteger(10, GFXVersion))
57+
if (Line.drop_while([](char C) { return std::isspace(C); })
58+
.consumeInteger(10, GFXVersion))
6059
return 1;
6160
break;
6261
}

0 commit comments

Comments
 (0)