[PATCH] D101048: [dfsan] Fix Len argument type in call to __dfsan_mem_transfer_callback

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 22 14:13:26 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2627f9961374: [dfsan] Fix Len argument type in call to __dfsan_mem_transfer_callback (authored by EliaGeretto, committed by Jianzhou Zhao <jianzhouzh at google.com>).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101048/new/

https://reviews.llvm.org/D101048

Files:
  llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp


Index: llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
+++ llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
@@ -2915,7 +2915,8 @@
   }
   if (ClEventCallbacks) {
     IRB.CreateCall(DFSF.DFS.DFSanMemTransferCallbackFn,
-                   {RawDestShadow, I.getLength()});
+                   {RawDestShadow,
+                    IRB.CreateZExtOrTrunc(I.getLength(), DFSF.DFS.IntptrTy)});
   }
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101048.339779.patch
Type: text/x-patch
Size: 547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210422/782ad620/attachment.bin>


More information about the llvm-commits mailing list