summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-09-17 19:14:11 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-09-17 19:14:11 +0000
commit6e1a9b0fdf430721d74de2860f6bcdfe2e56554a (patch)
tree44c69b3f871ca86f0f38f876387b2b5c8dc5570e
parentd16cf40f8c355bdf6415be2f25b59ae72f2526a8 (diff)
downloadbcm5719-llvm-6e1a9b0fdf430721d74de2860f6bcdfe2e56554a.tar.gz
bcm5719-llvm-6e1a9b0fdf430721d74de2860f6bcdfe2e56554a.zip
WasmEmitter - Don't dereference a dyn_cast result. NFCI.
llvm-svn: 372165
-rw-r--r--llvm/lib/ObjectYAML/WasmEmitter.cpp2
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;
}
OpenPOWER on IntegriCloud