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 c4450aa commit c8d3e61Copy full SHA for c8d3e61
llvm/lib/DWARFCFIChecker/Registers.h
@@ -38,8 +38,7 @@ inline SmallVector<MCPhysReg> getSuperRegs(const MCRegisterInfo *MCRI) {
38
}
39
40
sort(SuperRegs.begin(), SuperRegs.end());
41
- SuperRegs.resize(std::distance(
42
- SuperRegs.begin(), std::unique(SuperRegs.begin(), SuperRegs.end())));
+ SuperRegs.erase(llvm::unique(SuperRegs), SuperRegs.end());
43
return SuperRegs;
44
45
0 commit comments