Skip to content

Commit a67a2d4

Browse files
committed
Remove embarrassing cast
1 parent cf3f8f2 commit a67a2d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ bool AMDGPUCallLowering::lowerCall(MachineIRBuilder &MIRBuilder,
14741474
// Get the callee from the original instruction, so it doesn't look like
14751475
// this is an indirect call.
14761476
Info.Callee = MachineOperand::CreateGA(
1477-
static_cast<GlobalValue *>(Info.CB->getOperand(0)), /*Offset=*/0);
1477+
cast<GlobalValue>(Info.CB->getOperand(0)), /*Offset=*/0);
14781478
Info.OrigArgs.erase(Info.OrigArgs.begin());
14791479
Info.IsVarArg = false;
14801480
break;

0 commit comments

Comments
 (0)