[compiler-rt] r371691 - [dfsan] Revert dfsan_set_label removal
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 16:43:23 PDT 2019
Author: vitalybuka
Date: Wed Sep 11 16:43:23 2019
New Revision: 371691
URL: http://llvm.org/viewvc/llvm-project?rev=371691&view=rev
Log:
[dfsan] Revert dfsan_set_label removal
It's part of interface, maybe it is used in external code.
Modified:
compiler-rt/trunk/include/sanitizer/dfsan_interface.h
Modified: compiler-rt/trunk/include/sanitizer/dfsan_interface.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/dfsan_interface.h?rev=371691&r1=371690&r2=371691&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/dfsan_interface.h (original)
+++ compiler-rt/trunk/include/sanitizer/dfsan_interface.h Wed Sep 11 16:43:23 2019
@@ -111,6 +111,11 @@ void dfsan_weak_hook_strncmp(void *calle
#ifdef __cplusplus
} // extern "C"
+template <typename T>
+void dfsan_set_label(dfsan_label label, T &data) { // NOLINT
+ dfsan_set_label(label, (void *)&data, sizeof(T));
+}
+
#endif
#endif // DFSAN_INTERFACE_H
More information about the llvm-commits
mailing list