[llvm] cec73df - [LoongArch] Fix -Wmacro-redefined after D139612
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 10 18:27:36 PST 2022
Author: Fangrui Song
Date: 2022-12-11T02:27:29Z
New Revision: cec73df3f6c75925bd7b3ea89088188adc3ec97b
URL: https://github.com/llvm/llvm-project/commit/cec73df3f6c75925bd7b3ea89088188adc3ec97b
DIFF: https://github.com/llvm/llvm-project/commit/cec73df3f6c75925bd7b3ea89088188adc3ec97b.diff
LOG: [LoongArch] Fix -Wmacro-redefined after D139612
Added:
Modified:
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index bc7ef23b88533..ace2293169af8 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -685,6 +685,7 @@ LoongArchTargetLowering::lowerINTRINSIC_W_CHAIN(SDValue Op,
IOCSRRD_CASE(iocsrrd_b, IOCSRRD_B);
IOCSRRD_CASE(iocsrrd_h, IOCSRRD_H);
IOCSRRD_CASE(iocsrrd_w, IOCSRRD_W);
+#undef IOCSRRD_CASE
}
}
@@ -1152,6 +1153,7 @@ void LoongArchTargetLowering::ReplaceNodeResults(
IOCSRRD_CASE(iocsrrd_b, IOCSRRD_B);
IOCSRRD_CASE(iocsrrd_h, IOCSRRD_H);
IOCSRRD_CASE(iocsrrd_w, IOCSRRD_W);
+#undef IOCSRRD_CASE
}
break;
}
More information about the llvm-commits
mailing list