Commit 074fb793 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[clang-tidy] Remove unneeded casts

The intention is to print the address of Block, print it without any
cast.

See
https://clang.llvm.org/extra/clang-tidy/checks/google-readability-casting.html
and https://google.github.io/styleguide/cppguide.html#Casting.

Bug: v8:10488
Change-Id: Id174083d0c51518a808459b1b4cd12d5aa9781ab
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2240503Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68344}
parent 93b78a6c
......@@ -166,11 +166,11 @@ inline std::ostream& operator<<(std::ostream& stream,
<< loc.GetParameterIndex() << ")";
case DefinitionLocation::Kind::kPhi:
return stream << "DefinitionLocation::Phi(" << std::hex
<< (uint64_t)loc.GetPhiBlock() << std::dec << ", "
<< loc.GetPhiBlock() << std::dec << ", "
<< loc.GetPhiIndex() << ")";
case DefinitionLocation::Kind::kInstruction:
return stream << "DefinitionLocation::Instruction(" << std::hex
<< (uint64_t)loc.GetInstruction() << std::dec << ", "
<< loc.GetInstruction() << std::dec << ", "
<< loc.GetInstructionIndex() << ")";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment