diff options
author | Jim Ingham <jingham@apple.com> | 2016-03-12 03:33:36 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2016-03-12 03:33:36 +0000 |
commit | 190636bcc1b72227b3620d6e17ad0ac01fcdf228 (patch) | |
tree | d49074dcae65dc699dd8f0f1ebf307f77a0d2681 /lldb/source/Core/Disassembler.cpp | |
parent | 241fb61fdb417857f78ff177468efbea0c7b48b6 (diff) | |
download | bcm5719-llvm-190636bcc1b72227b3620d6e17ad0ac01fcdf228.tar.gz bcm5719-llvm-190636bcc1b72227b3620d6e17ad0ac01fcdf228.zip |
Let's not convert from UINT32_MAX to the std::numeric_limits version.
llvm-svn: 263333
Diffstat (limited to 'lldb/source/Core/Disassembler.cpp')
-rw-r--r-- | lldb/source/Core/Disassembler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp index 7a51f7e65af..2d456f514e0 100644 --- a/lldb/source/Core/Disassembler.cpp +++ b/lldb/source/Core/Disassembler.cpp @@ -1036,7 +1036,7 @@ InstructionList::GetIndexOfNextBranchInstruction(uint32_t start, Target &target) { size_t num_instructions = m_instructions.size(); - uint32_t next_branch = std::numeric_limits<uint32_t>::max(); + uint32_t next_branch = UINT32_MAX; size_t i; for (i = start; i < num_instructions; i++) { @@ -1053,7 +1053,7 @@ InstructionList::GetIndexOfNextBranchInstruction(uint32_t start, Target &target) if (target.GetArchitecture().GetTriple().getArch() == llvm::Triple::hexagon) { // If we didn't find a branch, find the last packet start. - if (next_branch == std::numeric_limits<uint32_t>::max()) + if (next_branch == UINT32_MAX) { i = num_instructions - 1; } @@ -1086,7 +1086,7 @@ InstructionList::GetIndexOfNextBranchInstruction(uint32_t start, Target &target) } } - if (next_branch == std::numeric_limits<uint32_t>::max()) + if (next_branch == UINT32_MAX) { // We couldn't find the previous packet, so return start next_branch = start; @@ -1099,7 +1099,7 @@ uint32_t InstructionList::GetIndexOfInstructionAtAddress (const Address &address) { size_t num_instructions = m_instructions.size(); - uint32_t index = std::numeric_limits<uint32_t>::max(); + uint32_t index = UINT32_MAX; for (size_t i = 0; i < num_instructions; i++) { if (m_instructions[i]->GetAddress() == address) @@ -1152,7 +1152,7 @@ Disassembler::ParseInstructions (const ExecutionContext *exe_ctx, m_arch.GetByteOrder(), m_arch.GetAddressByteSize()); const bool data_from_file = load_addr == LLDB_INVALID_ADDRESS; - return DecodeInstructions(range.GetBaseAddress(), data, 0, std::numeric_limits<uint32_t>::max(), false, + return DecodeInstructions(range.GetBaseAddress(), data, 0, UINT32_MAX, false, data_from_file); } else if (error_strm_ptr) |