Skip to content

Commit

Permalink
Throw runtime error on ARM64 cvt80to64
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisameling committed Sep 18, 2022
1 parent e32751b commit 0cadfe9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/demangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@
#include <string>
#include <ctype.h>
#include <assert.h>
#include <stdexcept>

#include "symutil.h"

#ifdef _M_X64
extern "C" void cvt80to64(void * in, long double * out);
#elif _M_ARM64
void cvt80to64(void * in, long double * out) {
throw std::runtime_error("cvt80to64 is only supported on x64 processors.");
}
#endif

#define USE_STDSTRING 1
Expand Down Expand Up @@ -462,7 +467,7 @@ class Demangle
p[i] = b;
}
// extract 10-byte double from rdata
#ifdef _M_X64
#ifndef _M_IX86
cvt80to64(rdata, &r);
#else
__asm {
Expand Down

0 comments on commit 0cadfe9

Please sign in to comment.