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:
parent
c2540f58f7
commit
ebdb3552e6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user