[llvm] 0353961 - Remove unused variable introduce in 0448d11a06b451a causing build

Zarko Todorovski via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 17:11:15 PDT 2020


Author: Zarko Todorovski
Date: 2020-09-10T20:07:11-04:00
New Revision: 035396197a5f129c5ec42e9e46a85c32fa1c1b84

URL: https://github.com/llvm/llvm-project/commit/035396197a5f129c5ec42e9e46a85c32fa1c1b84
DIFF: https://github.com/llvm/llvm-project/commit/035396197a5f129c5ec42e9e46a85c32fa1c1b84.diff

LOG: Remove unused variable introduce in 0448d11a06b451a causing build
failures with -Werror on.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
index aa155e18e110..ed31b336aa3e 100644
--- a/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
+++ b/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
@@ -1761,7 +1761,6 @@ bool AArch64InstructionSelector::earlySelect(MachineInstr &I) const {
     // Only do this for -O0 for a good code size improvement, because when
     // optimizations are enabled we want to leave this choice to
     // MachineBlockPlacement.
-    Function &F = MF.getFunction();
     bool EnableOpt = MF.getTarget().getOptLevel() != CodeGenOpt::None;
     if (EnableOpt || !MBB.isLayoutSuccessor(I.getOperand(0).getMBB()))
       return false;


        


More information about the llvm-commits mailing list