From: Simon Pilgrim Date: Tue, 17 Sep 2019 19:14:11 +0000 (+0000) Subject: WasmEmitter - Don't dereference a dyn_cast result. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd0433477fed8530c4d85173632d487a51e786c2;p=llvm WasmEmitter - Don't dereference a dyn_cast result. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372165 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ObjectYAML/WasmEmitter.cpp b/lib/ObjectYAML/WasmEmitter.cpp index e374764bf13..42c57d42ad7 100644 --- a/lib/ObjectYAML/WasmEmitter.cpp +++ b/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(&Sec); + auto *CustomSection = cast(&Sec); writeStringRef(("reloc." + CustomSection->Name).str(), OS); break; }