mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
d3d12: Comment out LLVM_BUILTIN_UNREACHABLE and display error msg in log
This commit is contained in:
parent
e76abf875f
commit
0cc4b555d1
2 changed files with 4 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <d3dcompiler.h>
|
||||
#include "D3D12GSRender.h"
|
||||
#include "d3dx12.h"
|
||||
#include "Utilities/Log.h"
|
||||
#define STRINGIFY(x) #x
|
||||
|
||||
extern PFN_D3D12_SERIALIZE_ROOT_SIGNATURE wrapD3D12SerializeRootSignature;
|
||||
|
@ -265,6 +266,7 @@ void D3D12GSRender::initConvertShader()
|
|||
|
||||
void unreachable_internal(const char *msg, const char *file, unsigned line)
|
||||
{
|
||||
LOG_ERROR(RSX, "file %s line %d : %s", file, line, msg);
|
||||
abort();
|
||||
#ifdef LLVM_BUILTIN_UNREACHABLE
|
||||
LLVM_BUILTIN_UNREACHABLE;
|
||||
|
|
|
@ -58,8 +58,8 @@ LLVM_ATTRIBUTE_NORETURN void unreachable_internal(const char *msg = nullptr, con
|
|||
#ifndef NDEBUG
|
||||
#define unreachable(msg) \
|
||||
unreachable_internal(msg, __FILE__, __LINE__)
|
||||
#elif defined(LLVM_BUILTIN_UNREACHABLE)
|
||||
#define unreachable(msg) LLVM_BUILTIN_UNREACHABLE
|
||||
//#elif defined(LLVM_BUILTIN_UNREACHABLE)
|
||||
//#define unreachable(msg) LLVM_BUILTIN_UNREACHABLE
|
||||
#else
|
||||
#define unreachable(msg) unreachable_internal()
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue