projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3577e60
)
[llvm-reduce] Fix a warning
author
Kazu Hirata
<kazu@google.com>
Sat, 15 Oct 2022 19:28:11 +0000
(12:28 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sat, 15 Oct 2022 19:28:11 +0000
(12:28 -0700)
This patch fixes:
llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp:96:21: warning:
unused variable ‘Op’ [-Wunused-variable]
llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
b/llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
index
a834034
..
327125b
100644
(file)
--- 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<Instruction>(reduceInstruction(Mod, I));
if (Replacement && Replacement != &I) {
- if (
auto *Op = dyn_cast
<FPMathOperator>(Replacement))
+ if (
isa
<FPMathOperator>(Replacement))
Replacement->copyFastMathFlags(&I);
Replacement->copyIRFlags(&I);