forked from OSchip/llvm-project
MachineModuleInfo: Prefer the LLVM_NODISCARD spelling
Update a function annotated with LLVM_ATTRIBUTE_UNUSED_RESULT to use LLVM_NODISCARD instead. llvm-svn: 284346
This commit is contained in:
parent
134b30cb55
commit
84d51dc255
|
@ -293,8 +293,7 @@ public:
|
||||||
return FrameInstructions;
|
return FrameInstructions;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned LLVM_ATTRIBUTE_UNUSED_RESULT
|
LLVM_NODISCARD unsigned addFrameInst(const MCCFIInstruction &Inst) {
|
||||||
addFrameInst(const MCCFIInstruction &Inst) {
|
|
||||||
FrameInstructions.push_back(Inst);
|
FrameInstructions.push_back(Inst);
|
||||||
return FrameInstructions.size() - 1;
|
return FrameInstructions.size() - 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue