[PATCH] [MSan][LLVM][MIPS] Shadow and Origin offsets for MIPS

Alexey Samsonov vonosmas at gmail.com
Tue Dec 9 12:09:20 PST 2014


================
Comment at: lib/Transforms/Instrumentation/MemorySanitizer.cpp:401
@@ -392,3 +400,3 @@
   C = &(M.getContext());
   unsigned PtrSize = DL->getPointerSizeInBits(/* AddressSpace */0);
   switch (PtrSize) {
----------------
You can get rid of the PtrSize completely. Just make a single switch on M.getTrargetTriple().getArch() to choose between x86, x86_64 and MIPS.

http://reviews.llvm.org/D6146






More information about the llvm-commits mailing list