1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

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 c2540f58f7
commit ebdb3552e6

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