swr: Fix non-pod-varargs error.
authorVinson Lee <vlee@freedesktop.org>
Sat, 29 Feb 2020 23:18:58 +0000 (15:18 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 01:19:50 +0000 (01:19 +0000)
../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<char>') 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 <vlee@freedesktop.org>
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4008>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4008>

src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp

index f9ae0e96b9c1b65c1ada6dd4437909cd979fa744..4eb0162d5d9c2898994004ef893c42300d7618c0 100644 (file)
@@ -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 =