Skip to content

Commit e9fa188

Browse files
[SelectionDAG] Fix an unused variable warning
This patch fixes: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:10832:12: error: variable 'Changed' set but not used [-Werror,-Wunused-but-set-variable]
1 parent 014912a commit e9fa188

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10840,6 +10840,7 @@ void SelectionDAG::salvageDebugInfo(SDNode &N) {
1084010840
Changed = true;
1084110841
}
1084210842
assert(Changed && "Salvage target doesn't use N");
10843+
(void)Changed;
1084310844

1084410845
SDDbgValue *Clone =
1084510846
getDbgValueList(DV->getVariable(), DbgExpression, NewLocOps,

0 commit comments

Comments
 (0)