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