diff --git a/llvm/lib/Target/RISCV/ISPMetadataPass.cpp b/llvm/lib/Target/RISCV/ISPMetadataPass.cpp index c537fc90a24d..a80769a7c030 100644 --- a/llvm/lib/Target/RISCV/ISPMetadataPass.cpp +++ b/llvm/lib/Target/RISCV/ISPMetadataPass.cpp @@ -46,9 +46,9 @@ static void setMIFlags(MachineInstr *MI) { MI->setFlag(MachineInstr::FnEpilog); } else if ( MI->isCall() ) - MI->setFlags(MachineInstr::IsCall); + MI->setFlag(MachineInstr::IsCall); else if ( MI->isBranch() ) - MI->setFlags(MachineInstr::IsBranch); + MI->setFlag(MachineInstr::IsBranch); }