mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add a better comment to explain what is going on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
db59c17853
commit
b55679d427
@ -70,7 +70,10 @@ static double HexToFP(const char *Buffer) {
|
||||
|
||||
assert(sizeof(double) == sizeof(Result) &&
|
||||
"Data sizes incompatible on this target!");
|
||||
void *ProxyPointer = &Result; // Break TBAA correctly
|
||||
// Behave nicely in the face of C TBAA rules... see:
|
||||
// http://www.nullstone.com/htmls/category/aliastyp.htm
|
||||
//
|
||||
char *ProxyPointer = (char*)&Result;
|
||||
return *(double*)ProxyPointer; // Cast Hex constant to double
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user