[AArch64][AMDGPU][WebAssembly] Use static_cast instead of a reinterpret_cast to downc...
authorCraig Topper <craig.topper@sifive.com>
Wed, 6 Apr 2022 21:50:49 +0000 (14:50 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 6 Apr 2022 22:09:18 +0000 (15:09 -0700)
commit1235aaefbd4fe249430732253f30403849232d8e
tree972010db9c1335ec5212a89a696ce4a911b5e22b
parent815fa5bf44c459cf5e72b35da4311d6681952e1b
[AArch64][AMDGPU][WebAssembly] Use static_cast instead of a reinterpret_cast to downcast in parseMachineFunctionInfo. NFC

static_cast is a little safer here since the compiler will
ensure we're casting to a class derived from
yaml::MachineFunctionInfo.

I believe this first appeared on AMDGPU and was copied to the
other two targets.

Spotted when it was being copied to RISCV in D123178.

Differential Revision: https://reviews.llvm.org/D123260
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp