From 3dc88795d8bf2c370f52dc566d2bd095d555b404 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Tue, 13 Feb 2018 09:46:46 +0300 Subject: [PATCH] [bindings][llvm][DI] warnings [-Wformat] --- llvmDebugInfoC/src/main/cpp/DebugInfoC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvmDebugInfoC/src/main/cpp/DebugInfoC.cpp b/llvmDebugInfoC/src/main/cpp/DebugInfoC.cpp index 4fddffb5ffe..244ac03afd5 100644 --- a/llvmDebugInfoC/src/main/cpp/DebugInfoC.cpp +++ b/llvmDebugInfoC/src/main/cpp/DebugInfoC.cpp @@ -209,7 +209,7 @@ void DIFunctionAddSubprogram(LLVMValueRef fn, DISubprogramRef sp) { auto dsp = llvm::cast(llvm::unwrap(sp)); f->setSubprogram(dsp); if (!dsp->describes(f)) { - fprintf(stderr, "error!!! f:%s, sp:%s\n", f->getName(), dsp->getLinkageName()); + fprintf(stderr, "error!!! f:%s, sp:%s\n", f->getName().str().c_str(), dsp->getLinkageName().str().c_str()); } }