Skip to content

Commit 2e9d6e9

Browse files
[clang] Remove unused local variables (NFC)
Identified with bugprone-unused-local-non-trivial-variable.
1 parent 706ffa1 commit 2e9d6e9

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

clang/lib/Driver/ToolChains/HLSL.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ void getSpirvExtOperand(StringRef SpvExtensionArg, raw_ostream &out) {
218218

219219
if (SpvExtensionArg.compare_insensitive("DXC") == 0) {
220220
bool first = true;
221-
std::string Operand;
222221
for (StringRef E : DxcSupportedExtensions) {
223222
if (!first)
224223
out << ",";

clang/lib/Sema/AnalysisBasedWarnings.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,6 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler {
26092609
bool IsRelatedToDecl,
26102610
ASTContext &Ctx) override {
26112611
SourceLocation Loc;
2612-
std::string Message;
26132612

26142613
Loc = Node.get<Stmt>()->getBeginLoc();
26152614
S.Diag(Loc, diag::warn_unsafe_buffer_usage_unique_ptr_array_access)

0 commit comments

Comments
 (0)