WasmEmitter - Don't dereference a dyn_cast result. NFCI.

llvm-svn: 372165
This commit is contained in:
Simon Pilgrim 2019-09-17 19:14:11 +00:00
parent d16cf40f8c
commit 6e1a9b0fdf
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}