From 185a531206e6d3c6d129ad91657432a67e254cba Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Fri, 7 Oct 2016 12:24:52 -0500 Subject: [PATCH] swr: [rasterizer jitter] adjust jitmanager assert Signed-off-by: Tim Rowley --- src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index cc773d75cc2..18bbbe79d41 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp @@ -239,9 +239,12 @@ bool JitManager::SetupModuleFromIR(const uint8_t *pIR) SMDiagnostic Err; std::unique_ptr newModule = parseIR(pMem.get()->getMemBufferRef(), Err, mContext); + SWR_REL_ASSERT( + !(newModule == nullptr), + "Parse failed!\n" + "%s", Err.getMessage().data()); if (newModule == nullptr) { - SWR_ASSERT(0, "Parse failed! Check Err for details."); return false; } -- 2.30.2