forked from OSchip/llvm-project
WasmEmitter - Don't dereference a dyn_cast result. NFCI.
llvm-svn: 372165
This commit is contained in:
parent
d16cf40f8c
commit
6e1a9b0fdf
|
@ -518,7 +518,7 @@ void WasmWriter::writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec,
|
||||||
writeStringRef("reloc.DATA", OS);
|
writeStringRef("reloc.DATA", OS);
|
||||||
break;
|
break;
|
||||||
case wasm::WASM_SEC_CUSTOM: {
|
case wasm::WASM_SEC_CUSTOM: {
|
||||||
auto CustomSection = dyn_cast<WasmYAML::CustomSection>(&Sec);
|
auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec);
|
||||||
writeStringRef(("reloc." + CustomSection->Name).str(), OS);
|
writeStringRef(("reloc." + CustomSection->Name).str(), OS);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue