diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 5c8b36cdfa4..113089b4352 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -30,6 +30,7 @@ #include "llvm/IR/InlineAsm.h" #include "llvm/IR/Intrinsics.h" #include "llvm/IR/MDBuilder.h" +#include "llvm/Support/ScopedPrinter.h" #include "llvm/Support/ConvertUTF.h" #include <sstream> @@ -698,9 +699,10 @@ llvm::Function *CodeGenFunction::generateBuiltinOSLogHelperFunction( if (!Size) continue; - Params.emplace_back(Ctx, nullptr, SourceLocation(), - &Ctx.Idents.get(std::string("arg") + std::to_string(I)), - getOSLogArgType(Ctx, Size), ImplicitParamDecl::Other); + Params.emplace_back( + Ctx, nullptr, SourceLocation(), + &Ctx.Idents.get(std::string("arg") + llvm::to_string(I)), + getOSLogArgType(Ctx, Size), ImplicitParamDecl::Other); } FunctionArgList Args; |