[PATCH] [LLVM] ASan Linux MIPS32 support

Jyun-Yan You jyyou.tw at gmail.com
Fri Jul 18 00:06:35 PDT 2014


================
Comment at: lib/Transforms/Instrumentation/AddressSanitizer.cpp:1277
@@ -1271,1 +1276,3 @@
                                         kAsanStackPartialRedzoneMagic);
+        if (ASan.TD->isLittleEndian()) {
+          Poison = support::endian::byte_swap<uint32_t, support::little>(Poison);
----------------
Kostya Serebryany wrote:
> this code does not use { and } code if/else statements like this. I.e. 
>   if (...)
>      code
>   else 
>      code
updated

http://reviews.llvm.org/D909






More information about the llvm-commits mailing list