[dfsan] Fix building OriginAddr at non-linux OS

Fix the broken build by D96545
This commit is contained in:
Jianzhou Zhao 2021-02-12 05:00:50 +00:00
parent 732534ed64
commit 083d45b21c
1 changed files with 6 additions and 2 deletions

View File

@ -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() {