[PATCH] D34827: Add end-to-end tests for overflows of byval arguments.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 12:06:48 PDT 2017


eugenis added inline comments.


================
Comment at: test/asan/TestCases/pass-object-byval.cc:7
+// Otherwise we would have issues with the self-referential pointer "me" in
+// class A below when ASan does a memcpy on the byval arg.
+// RUN: %clangxx_asan %s -emit-llvm -S -o %t.ll
----------------
But the pointer seems unused in the test. Is it possible to replace the IR check with smth like assert(a->me == &a) ?


https://reviews.llvm.org/D34827





More information about the llvm-commits mailing list