summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-02-09 12:04:39 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-02-09 12:04:39 +0000
commitcc22d887ac945ea0b04a29b85793cf85a2705d16 (patch)
treeed53ab6056e90e83d040a5a212bdabedc597faaf /llvm/lib/ObjectYAML
parent85ff1b54208971285a2bcf595f7ad01f6e1b531a (diff)
downloadbcm5719-llvm-cc22d887ac945ea0b04a29b85793cf85a2705d16.tar.gz
bcm5719-llvm-cc22d887ac945ea0b04a29b85793cf85a2705d16.zip
[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<ELFYAML::Object *>(IO.getContext()); (http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/29920) llvm-svn: 353608
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 4707a44fbd3..1a2e1835c36 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -663,8 +663,7 @@ void ScalarEnumerationTraits<ELFYAML::ELF_REL>::enumeration(
void ScalarEnumerationTraits<ELFYAML::ELF_DYNTAG>::enumeration(
IO &IO, ELFYAML::ELF_DYNTAG &Value) {
- 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");
// 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.
OpenPOWER on IntegriCloud