[Lldb-commits] [lldb] c00a708 - [lldb] Eliminate dead code (NFC)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 10 17:12:47 PST 2024


Author: Adrian Prantl
Date: 2024-12-10T17:09:44-08:00
New Revision: c00a708fc954f450679bf0e171029f8da4841cfb

URL: https://github.com/llvm/llvm-project/commit/c00a708fc954f450679bf0e171029f8da4841cfb
DIFF: https://github.com/llvm/llvm-project/commit/c00a708fc954f450679bf0e171029f8da4841cfb.diff

LOG: [lldb] Eliminate dead code (NFC)

Added: 
    

Modified: 
    lldb/source/DataFormatters/FormatterBytecode.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/DataFormatters/FormatterBytecode.cpp b/lldb/source/DataFormatters/FormatterBytecode.cpp
index a8975494b83670..f344fbaff6f02a 100644
--- a/lldb/source/DataFormatters/FormatterBytecode.cpp
+++ b/lldb/source/DataFormatters/FormatterBytecode.cpp
@@ -392,8 +392,6 @@ llvm::Error Interpret(std::vector<ControlStackElement> &control,
       int64_t x = data.Pop<int64_t>();                                         \
       if (y > 64)                                                              \
         return error("shift out of bounds");                                   \
-      if (y < 0)                                                               \
-        return error("shift out of bounds");                                   \
       data.Push(x OP y);                                                       \
     } else                                                                     \
       return error("unsupported data types");                                  \


        


More information about the lldb-commits mailing list