summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-02-09 12:14:20 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-02-09 12:14:20 +0000
commit0745ca7830209152a2df24cae3f60a9126353722 (patch)
tree3e22ebe52243b7ff7f81cc53b5f4e399f5e8a250 /llvm/lib/ObjectYAML
parentcc22d887ac945ea0b04a29b85793cf85a2705d16 (diff)
downloadbcm5719-llvm-0745ca7830209152a2df24cae3f60a9126353722.tar.gz
bcm5719-llvm-0745ca7830209152a2df24cae3f60a9126353722.zip
[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
Diffstat (limited to 'llvm/lib/ObjectYAML')
-rw-r--r--llvm/lib/ObjectYAML/ELFYAML.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
index 1a2e1835c36..339f080337a 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -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);
OpenPOWER on IntegriCloud