From 382b902a6db87a2b0409b760c320555d1f4eadca Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 29 Feb 2020 15:18:58 -0800 Subject: [PATCH] swr: Fix non-pod-varargs error. ../src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp:391:24: error: cannot pass object of non-trivial type 'std::string' (aka 'basic_string') through variadic function; call will abort at runtime [-Wnon-pod-varargs] pFunc->getName().str()); ^ Fixes: ff8265b64ff1 ("gallium/swr: Fix llvm11 compilation issues") Signed-off-by: Vinson Lee Reviewed-by: Jan Zielinski Tested-by: Marge Bot Part-of: --- .../drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp b/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp index f9ae0e96b9c..4eb0162d5d9 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp @@ -388,7 +388,7 @@ namespace SwrJit SWR_ASSERT(intrinsicMap.find(pFunc->getName().str()) != intrinsicMap.end(), "Unimplemented intrinsic %s.", - pFunc->getName().str()); + pFunc->getName().str().c_str()); Intrinsic::ID x86Intrinsic = intrinsicMap[pFunc->getName().str()]; Function* pX86IntrinFunc = -- 2.30.2