-
Notifications
You must be signed in to change notification settings - Fork 14.7k
[X86] Fix equality operator ambiguity #152739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@llvm/pr-subscribers-backend-x86 Author: Gregor Jasny (gjasny) ChangesWhen compiling LLVM To reproduce install Ubuntu 22.04 with the Then configure:
and build:
You'll see the following error:
The failing code has been added by @dpaoliello in #143577. Full diff: https://github.com/llvm/llvm-project/pull/152739.diff 1 Files Affected:
diff --git a/llvm/lib/Target/X86/X86WinEHUnwindV2.cpp b/llvm/lib/Target/X86/X86WinEHUnwindV2.cpp
index e9081a4ae4e72..0af7cd1e92a2a 100644
--- a/llvm/lib/Target/X86/X86WinEHUnwindV2.cpp
+++ b/llvm/lib/Target/X86/X86WinEHUnwindV2.cpp
@@ -232,7 +232,7 @@ bool X86WinEHUnwindV2::runOnMachineFunction(MachineFunction &MF) {
MF, Mode,
"The epilog is popping more registers than the prolog pushed");
if (PushedRegs[PushedRegs.size() - PoppedRegCount] !=
- MI.getOperand(0).getReg())
+ MI.getOperand(0).getReg().id())
return rejectCurrentFunctionInternalError(
MF, Mode,
"The epilog is popping a registers in "
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing this!
When compiling LLVM
21.1.0-rc2
on Ubuntu 22.04 with Clang 14 in C++20 mode I noticed a single compilation error. I know that the LLVM project is currently only at C++17 but given this is the only issue and trivial to fix I wonder if it could be included inmain
and later into therelease/21.x
branch.To reproduce install Ubuntu 22.04 with the
clang-14
package provided by Ubuntu.Then configure:
and build:
You'll see the following error:
The failing code has been added by @dpaoliello in #143577.