[PATCH] Make variable argument intrinsics behave correctly in a Win64 CC function.

Evgeniy Stepanov eugenis at google.com
Fri Sep 13 01:48:01 PDT 2013



================
Comment at: lib/Transforms/Instrumentation/MemorySanitizer.cpp:1941
@@ +1940,3 @@
+      if (Cast->getSrcTy() ==
+            Type::getInt8PtrTy(Cast->getContext())->getPointerTo())
+        return;
----------------
This looks very fragile.
Why can't you decide this based on the calling convention of the instrumented function?


http://llvm-reviews.chandlerc.com/D1622

BRANCH
  x64-ms-va_list

ARCANIST PROJECT
  llvm



More information about the llvm-commits mailing list