[llvm] a91c174 - GlobalISel: Fix copy paste error
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 25 17:07:52 PDT 2022
Author: Matt Arsenault
Date: 2022-10-25T17:06:00-07:00
New Revision: a91c17498ad318d00817e5f4de36be08a4d6457a
URL: https://github.com/llvm/llvm-project/commit/a91c17498ad318d00817e5f4de36be08a4d6457a
DIFF: https://github.com/llvm/llvm-project/commit/a91c17498ad318d00817e5f4de36be08a4d6457a.diff
LOG: GlobalISel: Fix copy paste error
Pretty sure this was harmless since the tablegen
calling convention definitions do not use pointers.
Part of issue 58604
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
index 0e038c00f7a73..79837aa54f234 100644
--- a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
@@ -1220,7 +1220,7 @@ static bool isCopyCompatibleType(LLT SrcTy, LLT DstTy) {
DstTy = DstTy.getScalarType();
return (SrcTy.isPointer() && DstTy.isScalar()) ||
- (DstTy.isScalar() && SrcTy.isPointer());
+ (DstTy.isPointer() && SrcTy.isScalar());
}
void CallLowering::IncomingValueHandler::assignValueToReg(Register ValVReg,
More information about the llvm-commits
mailing list