From 6e1a9b0fdf430721d74de2860f6bcdfe2e56554a Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 17 Sep 2019 19:14:11 +0000 Subject: [PATCH] WasmEmitter - Don't dereference a dyn_cast result. NFCI. llvm-svn: 372165 --- llvm/lib/ObjectYAML/WasmEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/ObjectYAML/WasmEmitter.cpp b/llvm/lib/ObjectYAML/WasmEmitter.cpp index e374764bf139..42c57d42ad78 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(&Sec); + auto *CustomSection = cast(&Sec); writeStringRef(("reloc." + CustomSection->Name).str(), OS); break; }