Commit 414522e0 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[clang-tidy] Remove unneeded casts

unsigned is (uint32_t) in both branches, so the cast can be removed.

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: I6d669e36509049fde449d8455c34d140f95b9b8b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2233989
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68303}
parent 58af0be4
......@@ -34,12 +34,12 @@ void CpuTraceMarkExtension::Mark(
#if defined(__i386__) && defined(__pic__)
__asm__ __volatile__("push %%ebx; cpuid; pop %%ebx"
: "=a"(magic_dummy)
: "a"(0x4711 | ((unsigned)(param) << 16))
: "a"(0x4711 | (param << 16))
: "ecx", "edx");
#else
__asm__ __volatile__("cpuid"
: "=a"(magic_dummy)
: "a"(0x4711 | ((unsigned)(param) << 16))
: "a"(0x4711 | (param << 16))
: "ecx", "edx", "ebx");
#endif // defined(__i386__) && defined(__pic__)
......
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