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;
|
||||
}
|
||||
|
||||
unsigned LLVM_ATTRIBUTE_UNUSED_RESULT
|
||||
addFrameInst(const MCCFIInstruction &Inst) {
|
||||
LLVM_NODISCARD unsigned addFrameInst(const MCCFIInstruction &Inst) {
|
||||
FrameInstructions.push_back(Inst);
|
||||
return FrameInstructions.size() - 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue