You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code:
void AsmPrinter::PrintSpecial(const MachineInstr *MI, const char *Code) {
[...]
} else if (!strcmp(Code, "uid")) {
// Assign a unique ID to this machine instruction.
static const MachineInstr *LastMI = 0;
static unsigned Counter = 0U-1;
// If this is a new machine instruction, bump the counter.
if (LastMI != MI) { ++Counter; LastMI = MI; }
O << Counter;
} else {
[...]
}
Comparison (LastMI != MI) is incorrect. Machine Instructions of different
Machine Functions can have the same address.
The text was updated successfully, but these errors were encountered:
Extended Description
The code:
void AsmPrinter::PrintSpecial(const MachineInstr *MI, const char *Code) {
[...]
} else if (!strcmp(Code, "uid")) {
// Assign a unique ID to this machine instruction.
static const MachineInstr *LastMI = 0;
static unsigned Counter = 0U-1;
// If this is a new machine instruction, bump the counter.
if (LastMI != MI) { ++Counter; LastMI = MI; }
O << Counter;
} else {
[...]
}
Comparison (LastMI != MI) is incorrect. Machine Instructions of different
Machine Functions can have the same address.
The text was updated successfully, but these errors were encountered: