From 0023caf952e5100637227753f071bf0877176771 Mon Sep 17 00:00:00 2001 From: luxufan <932494295@qq.com> Date: Tue, 3 Aug 2021 11:38:25 +0800 Subject: [PATCH] [RuntimeDyldChecker] Delete comparision of integers of different signs --- llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp index 3af57cb6da81..2b88c481dab0 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp @@ -688,8 +688,6 @@ private: int64_t Offset) const { MCDisassembler *Dis = Checker.Disassembler; StringRef SymbolMem = Checker.getSymbolContent(Symbol); - if (SymbolMem.size() <= Offset) - return false; ArrayRef SymbolBytes(SymbolMem.bytes_begin() + Offset, SymbolMem.size() - Offset);