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 2fb1519 commit 0042b35Copy full SHA for 0042b35
llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
@@ -332,10 +332,11 @@ void RISCVAsmPrinter::emitInstruction(const MachineInstr *MI) {
332
const Function &F = MI->getParent()->getParent()->getFunction();
333
if (F.hasFnAttribute("patchable-function-entry")) {
334
unsigned Num;
335
- assert(!F.getFnAttribute("patchable-function-entry")
336
- .getValueAsString()
337
- .getAsInteger(10, Num) &&
338
- "Enforced by the verified");
+ [[maybe_unused]] bool Result =
+ F.getFnAttribute("patchable-function-entry")
+ .getValueAsString()
+ .getAsInteger(10, Num);
339
+ assert(!Result && "Enforced by the verifier");
340
emitNops(Num);
341
return;
342
}
0 commit comments