[llvm] r353609 - [lib/ObjectYAML] - Fix BB after r353607 [2]. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 9 04:14:20 PST 2019
Author: grimar
Date: Sat Feb 9 04:14:20 2019
New Revision: 353609
URL: http://llvm.org/viewvc/llvm-project?rev=353609&view=rev
Log:
[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());
Modified:
llvm/trunk/lib/ObjectYAML/ELFYAML.cpp
Modified: llvm/trunk/lib/ObjectYAML/ELFYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ObjectYAML/ELFYAML.cpp?rev=353609&r1=353608&r2=353609&view=diff
==============================================================================
--- llvm/trunk/lib/ObjectYAML/ELFYAML.cpp (original)
+++ llvm/trunk/lib/ObjectYAML/ELFYAML.cpp Sat Feb 9 04:14:20 2019
@@ -990,8 +990,7 @@ struct NormalizedMips64RelType {
void MappingTraits<ELFYAML::DynamicEntry>::mapping(IO &IO,
ELFYAML::DynamicEntry &Rel) {
- const auto *Object = static_cast<ELFYAML::Object *>(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);
More information about the llvm-commits
mailing list