From 0745ca7830209152a2df24cae3f60a9126353722 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Sat, 9 Feb 2019 12:14:20 +0000 Subject: [PATCH] [lib/ObjectYAML] - Fix BB after r353607 [2]. NFC. The second and the last place it seems. Error was: [ 4%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Error.cpp.o /Users/buildslave/as-bldslv9_new/lld-x86_64-darwin13/llvm.src/lib/ObjectYAML/ELFYAML.cpp:993:15: error: unused variable 'Object' [-Werror,-Wunused-variable] const auto *Object = static_cast(IO.getContext()); llvm-svn: 353609 --- llvm/lib/ObjectYAML/ELFYAML.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp index 1a2e1835c360..339f080337ae 100644 --- a/llvm/lib/ObjectYAML/ELFYAML.cpp +++ b/llvm/lib/ObjectYAML/ELFYAML.cpp @@ -990,8 +990,7 @@ struct NormalizedMips64RelType { void MappingTraits::mapping(IO &IO, ELFYAML::DynamicEntry &Rel) { - const auto *Object = static_cast(IO.getContext()); - assert(Object && "The IO context is not initialized"); + assert(IO.getContext() && "The IO context is not initialized"); IO.mapRequired("Tag", Rel.Tag); IO.mapRequired("Value", Rel.Val);