From 7c24665390a79ee05a0a562ff689e52d4135063e Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 18 Oct 2011 19:51:36 +0000 Subject: [PATCH] Object/COFF: Remove useless test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142408 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Object/COFFObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp index e52a31f67f9..a048cf50a58 100644 --- a/lib/Object/COFFObjectFile.cpp +++ b/lib/Object/COFFObjectFile.cpp @@ -573,7 +573,7 @@ error_code COFFObjectFile::getString(uint32_t offset, error_code COFFObjectFile::getSymbol(uint32_t index, const coff_symbol *&Result) const { - if (index >= 0 && index < Header->NumberOfSymbols) + if (index < Header->NumberOfSymbols) Result = SymbolTable + index; else return object_error::parse_failed; -- 2.34.1