[PATCH] [DFSAN][MIPS][LLVM] Defining ShadowPtrMask variable for MIPS64

Kumar Sukhani kumarsukhani at gmail.com
Wed Dec 3 01:05:36 PST 2014


================
Comment at: lib/Transforms/Instrumentation/DataFlowSanitizer.cpp:438
@@ -430,1 +437,3 @@
+  else if (IsMIPS64)
+    ShadowPtrMask = ConstantInt::getSigned(IntptrTy, ~0xF000000000LL);
 
----------------
pcc wrote:
> This should do something sensible if the target is unsupported, maybe call `report_fatal_error`?
@pcc: clang does that for us[1], should I still add the call to report_fatal_error?

[1] http://reviews.llvm.org/D6147

http://reviews.llvm.org/D6459






More information about the llvm-commits mailing list