forked from OSchip/llvm-project
[dfsan] Fix building OriginAddr at non-linux OS
Fix the broken build by D96545
This commit is contained in:
parent
732534ed64
commit
083d45b21c
|
@ -103,10 +103,14 @@ uptr ShadowAddr() {
|
|||
return MappingArchImpl<MAPPING_SHADOW_ADDR>();
|
||||
}
|
||||
|
||||
#if defined(__x86_64__)
|
||||
ALWAYS_INLINE
|
||||
uptr OriginAddr() { return MappingArchImpl<MAPPING_ORIGIN_ADDR>(); }
|
||||
uptr OriginAddr() {
|
||||
#if defined(__x86_64__)
|
||||
return MappingArchImpl<MAPPING_ORIGIN_ADDR>();
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
ALWAYS_INLINE
|
||||
uptr UnionTableAddr() {
|
||||
|
|
Loading…
Reference in New Issue