Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
[x86/Linux] Fix indirection of non-volatile null pointer will be deleted
Browse files Browse the repository at this point in the history
Fix compile error for x86/Linux
- fix error "indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference]"
- using clang 3.8
  • Loading branch information
seanshpark committed Dec 5, 2016
1 parent b51bcf1 commit 414c3f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/i386/gmsx86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ void LazyMachState::unwindLazyState(LazyMachState* baseState,
goto again;
}
#ifndef _PREFIX_
*((int*) 0) = 1; // If you get at this error, it is because yout
*((volatile int*) 0) = 1; // If you get at this error, it is because yout
// set a breakpoint in a helpermethod frame epilog
// you can't do that unfortunately. Just move it
// into the interior of the method to fix it
Expand Down Expand Up @@ -1225,7 +1225,7 @@ void LazyMachState::unwindLazyState(LazyMachState* baseState,
// FIX what to do here?
#ifndef DACCESS_COMPILE
#ifndef _PREFIX_
*((unsigned __int8**) 0) = ip; // cause an access violation (Free Build assert)
*((volatile unsigned PTR_BYTE*) 0) = ip; // cause an access violation (Free Build assert)
#endif // !_PREFIX_
#else
DacNotImpl();
Expand Down

0 comments on commit 414c3f3

Please sign in to comment.