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
Commit migrated from https://github.com/dotnet/coreclr/commit/
9f84a04da21622944a96b2e77d3330910f5af263
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
// FIX what to do here?
#ifndef DACCESS_COMPILE
#ifndef _PREFIX_
- *((unsigned __int8**) 0) = ip; // cause an access violation (Free Build assert)
+ *((volatile PTR_BYTE*) 0) = ip; // cause an access violation (Free Build assert)
#endif // !_PREFIX_
#else
DacNotImpl();