diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-17 19:14:11 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-09-17 19:14:11 +0000 |
| commit | 6e1a9b0fdf430721d74de2860f6bcdfe2e56554a (patch) | |
| tree | 44c69b3f871ca86f0f38f876387b2b5c8dc5570e /llvm/lib/ObjectYAML | |
| parent | d16cf40f8c355bdf6415be2f25b59ae72f2526a8 (diff) | |
| download | bcm5719-llvm-6e1a9b0fdf430721d74de2860f6bcdfe2e56554a.tar.gz bcm5719-llvm-6e1a9b0fdf430721d74de2860f6bcdfe2e56554a.zip | |
WasmEmitter - Don't dereference a dyn_cast result. NFCI.
llvm-svn: 372165
Diffstat (limited to 'llvm/lib/ObjectYAML')
| -rw-r--r-- | llvm/lib/ObjectYAML/WasmEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/WasmEmitter.cpp b/llvm/lib/ObjectYAML/WasmEmitter.cpp index e374764bf13..42c57d42ad7 100644 --- a/llvm/lib/ObjectYAML/WasmEmitter.cpp +++ b/llvm/lib/ObjectYAML/WasmEmitter.cpp @@ -518,7 +518,7 @@ void WasmWriter::writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, writeStringRef("reloc.DATA", OS); break; case wasm::WASM_SEC_CUSTOM: { - auto CustomSection = dyn_cast<WasmYAML::CustomSection>(&Sec); + auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec); writeStringRef(("reloc." + CustomSection->Name).str(), OS); break; } |

