d3d12: Comment out LLVM_BUILTIN_UNREACHABLE and display error msg in log

This commit is contained in:
Vincent Lejeune 2015-11-01 21:23:57 +01:00
parent e76abf875f
commit 0cc4b555d1
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -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