[llvm] 2fa4b50 - Fix unused variable warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 04:24:11 PST 2024


Author: Simon Pilgrim
Date: 2024-12-18T12:23:50Z
New Revision: 2fa4b502d1910b8f134e01274d3898a265b0c88b

URL: https://github.com/llvm/llvm-project/commit/2fa4b502d1910b8f134e01274d3898a265b0c88b
DIFF: https://github.com/llvm/llvm-project/commit/2fa4b502d1910b8f134e01274d3898a265b0c88b.diff

LOG: Fix unused variable warning. NFC.

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp b/llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp
index 9573e2242ad3f7..25cdf1ce66d449 100644
--- a/llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp
+++ b/llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp
@@ -53,7 +53,6 @@ computeAliasingInstructions(const LLVMState &State, const Instruction *Instr,
     if (OtherOpcode == Instr->Description.getOpcode())
       continue;
     const Instruction &OtherInstr = State.getIC().getInstr(OtherOpcode);
-    const MCInstrDesc &OtherInstrDesc = OtherInstr.Description;
     if (OtherInstr.hasMemoryOperands())
       continue;
     if (!ET.allowAsBackToBack(OtherInstr))


        


More information about the llvm-commits mailing list