Skip to content

Commit 0745ca7

Browse files
author
George Rimar
committed
[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<ELFYAML::Object *>(IO.getContext()); llvm-svn: 353609
1 parent cc22d88 commit 0745ca7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/ObjectYAML/ELFYAML.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,7 @@ struct NormalizedMips64RelType {
990990

991991
void MappingTraits<ELFYAML::DynamicEntry>::mapping(IO &IO,
992992
ELFYAML::DynamicEntry &Rel) {
993-
const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext());
994-
assert(Object && "The IO context is not initialized");
993+
assert(IO.getContext() && "The IO context is not initialized");
995994

996995
IO.mapRequired("Tag", Rel.Tag);
997996
IO.mapRequired("Value", Rel.Val);

0 commit comments

Comments
 (0)