From 68a8b9f792ef268ff8323fedf4e118524c739a1d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 3 Jul 2015 12:53:50 +0000 Subject: [PATCH] Avoid warning about unused variable when building without assertions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241348 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ELFObjectFile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 4966983822c..5b9b113a2f0 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -254,8 +254,8 @@ protected: DRI.d.b = 0; return DRI; } - uint32_t Type = SymTable->sh_type; - assert(Type == ELF::SHT_SYMTAB || Type == ELF::SHT_DYNSYM); + assert(SymTable->sh_type == ELF::SHT_SYMTAB || + SymTable->sh_type == ELF::SHT_DYNSYM); uintptr_t SHT = reinterpret_cast(EF.section_begin()); unsigned SymTableIndex = -- 2.34.1