From: Kazu Hirata Date: Sat, 15 Oct 2022 19:28:11 +0000 (-0700) Subject: [llvm-reduce] Fix a warning X-Git-Tag: upstream/17.0.6~30438 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=988025adc703eb1bf8db46665925464328dd60aa;p=platform%2Fupstream%2Fllvm.git [llvm-reduce] Fix a warning This patch fixes: llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp:96:21: warning: unused variable ‘Op’ [-Wunused-variable] --- diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp index a834034..327125b 100644 --- a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp @@ -93,7 +93,7 @@ static void replaceOpcodesInModule(Oracle &O, Module &Mod) { Instruction *Replacement = dyn_cast_or_null(reduceInstruction(Mod, I)); if (Replacement && Replacement != &I) { - if (auto *Op = dyn_cast(Replacement)) + if (isa(Replacement)) Replacement->copyFastMathFlags(&I); Replacement->copyIRFlags(&I);