From eaded9e3644880b8a983f09a77741a97ac1f63a6 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Sat, 9 Feb 2019 12:04:39 +0000 Subject: [PATCH] [lib/ObjectYAML] - Fix BB after r353607. NFC. Error was: [ 4%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/DAGDeltaAlgorithm.cpp.o /Users/buildslave/as-bldslv9_new/lld-x86_64-darwin13/llvm.src/lib/ObjectYAML/ELFYAML.cpp:666:15: error: unused variable 'Object' [-Werror,-Wunused-variable] const auto *Object = static_cast(IO.getContext()); (http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/29920) llvm-svn: 353608 --- lib/ObjectYAML/ELFYAML.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ObjectYAML/ELFYAML.cpp b/lib/ObjectYAML/ELFYAML.cpp index 4707a44fbd3..1a2e1835c36 100644 --- a/lib/ObjectYAML/ELFYAML.cpp +++ b/lib/ObjectYAML/ELFYAML.cpp @@ -663,8 +663,7 @@ void ScalarEnumerationTraits::enumeration( void ScalarEnumerationTraits::enumeration( IO &IO, ELFYAML::ELF_DYNTAG &Value) { - const auto *Object = static_cast(IO.getContext()); - assert(Object && "The IO context is not initialized"); + assert(IO.getContext() && "The IO context is not initialized"); // TODO: For simplicity we do not handle target specific flags. They are // still supported and will be shown as a raw numeric values in the output.