Skip to content

Commit c4c5e79

Browse files
Fix warnings
This patch fixes: clang-tools-extra/clangd/Hover.cpp:1036:28: warning: unused variable ‘MTE’ [-Wunused-variable] llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:22295:19: error: unused variable 'AN' [-Werror,-Wunused-variable]
1 parent c68af56 commit c4c5e79

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

clang-tools-extra/clangd/Hover.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,7 @@ void maybeAddCalleeArgInfo(const SelectionTree::Node *N, HoverInfo &HI,
10331033
PassType.PassBy = HoverInfo::PassType::Value;
10341034
else
10351035
PassType.Converted = true;
1036-
} else if (const auto *MTE =
1037-
CastNode->ASTNode.get<MaterializeTemporaryExpr>()) {
1036+
} else if (CastNode->ASTNode.get<MaterializeTemporaryExpr>()) {
10381037
// Can't bind a non-const-ref to a temporary, so has to be const-ref
10391038
PassType.PassBy = HoverInfo::PassType::ConstRef;
10401039
} else { // Unknown implicit node, assume type conversion.

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22292,8 +22292,7 @@ void AArch64TargetLowering::ReplaceNodeResults(
2229222292
case ISD::ATOMIC_LOAD_AND:
2229322293
case ISD::ATOMIC_LOAD_OR:
2229422294
case ISD::ATOMIC_SWAP: {
22295-
AtomicSDNode *AN = cast<AtomicSDNode>(N);
22296-
assert(AN->getVal().getValueType() == MVT::i128 &&
22295+
assert(cast<AtomicSDNode>(N)->getVal().getValueType() == MVT::i128 &&
2229722296
"Expected 128-bit atomicrmw.");
2229822297
// These need custom type legalisation so we go directly to instruction.
2229922298
ReplaceATOMIC_LOAD_128Results(N, Results, DAG, Subtarget);

0 commit comments

Comments
 (0)