Skip to content

Commit b172f4a

Browse files
committed
[SandboxIR] Fix -Wunused-variable in SandboxIR.cpp (NFC)
/llvm-project/llvm/lib/SandboxIR/SandboxIR.cpp:584:8: error: unused variable 'Pair' [-Werror,-Wunused-variable] auto Pair = LLVMValueToValueMap.insert({VPtr->Val, std::move(VPtr)}); ^ 1 error generated.
1 parent b686600 commit b172f4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/SandboxIR/SandboxIR.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ Value *Context::registerValue(std::unique_ptr<Value> &&VPtr) {
581581
assert(VPtr->getSubclassID() != Value::ClassID::User &&
582582
"Can't register a user!");
583583
Value *V = VPtr.get();
584-
auto Pair = LLVMValueToValueMap.insert({VPtr->Val, std::move(VPtr)});
584+
[[maybe_unused]] auto Pair =
585+
LLVMValueToValueMap.insert({VPtr->Val, std::move(VPtr)});
585586
assert(Pair.second && "Already exists!");
586587
return V;
587588
}

0 commit comments

Comments
 (0)