diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp index a10fec00fd3b..c18a22cbbb54 100644 --- a/llvm/tools/llvm2cpp/CppWriter.cpp +++ b/llvm/tools/llvm2cpp/CppWriter.cpp @@ -460,6 +460,8 @@ CppWriter::printParamAttrs(const PAListPtr &PAL, const std::string &name) { Out << " | ParamAttr::NoReturn"; if (attrs & ParamAttr::NoUnwind) Out << " | ParamAttr::NoUnwind"; + if (attrs & ParamAttr::ByVal) + Out << " | ParamAttr::ByVal"; Out << ";"; nl(Out); Out << "Attrs.push_back(PAWI);";