[llvm] [GISel] #undef macros when they are no longer needed. NFC (PR #117652)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 25 16:43:26 PST 2024
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/117652
These macros are created inside a function. They should be undefined before the end of the function.
>From 9bf937cfc45e0147204fc6614e920f6584d4036f Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Mon, 25 Nov 2024 16:31:07 -0800
Subject: [PATCH] [GISel] #undef macros when they are no longer needed. NFC
These macros are created inside a function. They should be undefined
before the end of the function.
---
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index 321760ef822bc2..abfca50a22bf1b 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -499,6 +499,8 @@ static RTLIB::Libcall getRTLibDesc(unsigned Opcode, unsigned Size) {
RTLIBCASE(LLRINT_F);
}
llvm_unreachable("Unknown libcall function");
+#undef RTLIBCASE_INT
+#undef RTLIBCASE
}
/// True if an instruction is in tail position in its caller. Intended for
More information about the llvm-commits
mailing list