We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c73d6fd commit 4728a47Copy full SHA for 4728a47
bolt/lib/Passes/PAuthGadgetScanner.cpp
@@ -66,14 +66,12 @@ namespace PAuthGadgetScanner {
66
}
67
68
[[maybe_unused]] static void traceReg(const BinaryContext &BC, StringRef Label,
69
- ErrorOr<MCPhysReg> Reg) {
+ MCPhysReg Reg) {
70
dbgs() << " " << Label << ": ";
71
- if (Reg.getError())
72
- dbgs() << "(error)";
73
- else if (*Reg == BC.MIB->getNoRegister())
+ if (Reg == BC.MIB->getNoRegister())
74
dbgs() << "(none)";
75
else
76
- dbgs() << BC.MRI->getName(*Reg);
+ dbgs() << BC.MRI->getName(Reg);
77
dbgs() << "\n";
78
79
0 commit comments