[all-commits] [llvm/llvm-project] 0ef680: [GlobalISel][nfc] Remove unnecessary cast
Felipe de Azevedo Piovezan via All-commits
all-commits at lists.llvm.org
Thu Jul 28 14:55:53 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0ef6809c48515e5ae2c7cb1ad34fa2169a40b0fa
https://github.com/llvm/llvm-project/commit/0ef6809c48515e5ae2c7cb1ad34fa2169a40b0fa
Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: 2022-07-28 (Thu, 28 Jul 2022)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
Log Message:
-----------
[GlobalISel][nfc] Remove unnecessary cast
The getOperand method already returns a Constant when it is called on
a ConstantExpression, as such the cast is not needed. To prevent a type
mismatch between the different return statements of the lambda, the
lambda return type is explicitly provided.
Differential Revision: https://reviews.llvm.org/D130719
More information about the All-commits
mailing list