From cf5dc9f24c622e952304669efacb4776014c8743 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 29 Nov 2017 21:29:52 +0000 Subject: [PATCH] Replace a dyn_cast with a cast. NFC. llvm-svn: 319361 --- lld/ELF/Thunks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/Thunks.cpp b/lld/ELF/Thunks.cpp index cce31ca..91ca3b9 100644 --- a/lld/ELF/Thunks.cpp +++ b/lld/ELF/Thunks.cpp @@ -372,8 +372,8 @@ void MicroMipsR6Thunk::addSymbols(ThunkSection &IS) { } InputSection *MicroMipsR6Thunk::getTargetInputSection() const { - auto *DR = dyn_cast(&Destination); - return dyn_cast(DR->Section); + auto &DR = cast(Destination); + return dyn_cast(DR.Section); } Thunk::Thunk(Symbol &D) : Destination(D), Offset(0) {} -- 2.7.4