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:
05c17bc
)
[RISCV] Simplify code after D125905
author
Fangrui Song
<i@maskray.me>
Fri, 27 May 2022 01:13:38 +0000
(18:13 -0700)
committer
Fangrui Song
<i@maskray.me>
Fri, 27 May 2022 01:13:38 +0000
(18:13 -0700)
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
index
52e6af1
..
e274560
100644
(file)
--- a/
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
+++ b/
llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
@@
-232,9
+232,7
@@
class RISCVELFStreamer : public MCELFStreamer {
}
void reset() override {
- MCTargetStreamer &TS = *getTargetStreamer();
- RISCVTargetStreamer &RTS = static_cast<RISCVTargetStreamer &>(TS);
- RTS.reset();
+ static_cast<RISCVTargetStreamer *>(getTargetStreamer())->reset();
MCELFStreamer::reset();
}