Skip to content

Commit

Permalink
[BOLT] Remove duplicate expression (llvm#80380)
Browse files Browse the repository at this point in the history
Reported by cpp check static analyzer in llvm#80111.

Fixes llvm#80111.
  • Loading branch information
maksfb authored Feb 2, 2024
1 parent 58c494f commit 082fe9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bolt/lib/Target/X86/X86MCPlusBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,7 @@ class X86MCPlusBuilder : public MCPlusBuilder {
MO->BaseRegNum != X86::RIP && MO->BaseRegNum != X86::RBP &&
MO->BaseRegNum != X86::NoRegister &&
MO->IndexRegNum == X86::NoRegister &&
MO->SegRegNum == X86::NoRegister && MO->BaseRegNum != X86::RIP) {
MO->SegRegNum == X86::NoRegister) {
VtableRegNum = MO->BaseRegNum;
MethodOffset = MO->DispImm;
MethodFetchInsns.push_back(&CurInst);
Expand Down

0 comments on commit 082fe9a

Please sign in to comment.