Skip to content

Commit 3248fba

Browse files
[ExecutionEngine] Remove an unnecessary cast (NFC) (llvm#154890)
getTargetFlags() already returns TargetFlagsType.
1 parent 3158aef commit 3248fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ExecutionEngine/JITLink/aarch32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace aarch32 {
2828

2929
/// Check whether the given target flags are set for this Symbol.
3030
bool hasTargetFlags(Symbol &Sym, TargetFlagsType Flags) {
31-
return static_cast<TargetFlagsType>(Sym.getTargetFlags()) & Flags;
31+
return Sym.getTargetFlags() & Flags;
3232
}
3333

3434
/// Encode 22-bit immediate value for branch instructions without J1J2 range

0 commit comments

Comments
 (0)