Skip to content

Commit ebcaa57

Browse files
authored
[GISel] #undef macros when they are no longer needed. NFC (#117652)
These macros are created inside a function. They should be undefined before the end of the function.
1 parent 2ed8c5d commit ebcaa57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ static RTLIB::Libcall getRTLibDesc(unsigned Opcode, unsigned Size) {
499499
RTLIBCASE(LLRINT_F);
500500
}
501501
llvm_unreachable("Unknown libcall function");
502+
#undef RTLIBCASE_INT
503+
#undef RTLIBCASE
502504
}
503505

504506
/// True if an instruction is in tail position in its caller. Intended for

0 commit comments

Comments
 (0)