[PATCH] D71477: [mips] Add an assert in getTargetStreamer()
Miloš Stojanović via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 08:06:50 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd7efa6b1985f: [mips] Add an assert in getTargetStreamer() (authored by mstojanovic).
Herald added a subscriber: jrtc27.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71477/new/
https://reviews.llvm.org/D71477
Files:
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
Index: llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
===================================================================
--- llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -134,6 +134,8 @@
class MipsAsmParser : public MCTargetAsmParser {
MipsTargetStreamer &getTargetStreamer() {
+ assert(getParser().getStreamer().getTargetStreamer() &&
+ "do not have a target streamer");
MCTargetStreamer &TS = *getParser().getStreamer().getTargetStreamer();
return static_cast<MipsTargetStreamer &>(TS);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71477.234069.patch
Type: text/x-patch
Size: 586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191216/bb6b1c17/attachment.bin>
More information about the llvm-commits
mailing list