[asan] Avoid assert failure for non-default shadow scale
authorWalter Lee <waltl@google.com>
Thu, 16 Nov 2017 22:02:58 +0000 (22:02 +0000)
committerWalter Lee <waltl@google.com>
Thu, 16 Nov 2017 22:02:58 +0000 (22:02 +0000)
commited8b52c8bc585e4fb76ac43bdafb4e07b02036ae
tree2092bdf45fed19597c83ff07d6cde8a11ede4697
parentf9b2c734345e83a99b4767fa8a6f452aff2cea68
[asan] Avoid assert failure for non-default shadow scale

Rather than assertion failing, we can fall back to the
non-optimized version which works for any shadow scale.

Differential Revision: https://reviews.llvm.org/D39474

llvm-svn: 318460
compiler-rt/lib/asan/asan_fake_stack.cc