File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -483,9 +483,10 @@ class Value {
483
483
484
484
template <typename T, typename ... U> void create (U &&... V) {
485
485
#if defined(ADDRESS_SANITIZER) || defined(__SANITIZE_ADDRESS__)
486
- // Unpoisoning to prevent overwriting poisoned object (e.g., annotated short string).
487
- // Objects that have had their memory poisoned may cause an ASan error if their memory is reused
488
- // without calling their destructor. Unpoisoning the memory prevents this error from occurring.
486
+ // Unpoisoning to prevent overwriting poisoned object (e.g., annotated short
487
+ // string). Objects that have had their memory poisoned may cause an ASan
488
+ // error if their memory is reused without calling their destructor.
489
+ // Unpoisoning the memory prevents this error from occurring.
489
490
__asan_unpoison_memory_region (&Union, sizeof (T));
490
491
#endif
491
492
new (reinterpret_cast <T *>(&Union)) T (std::forward<U>(V)...);
You can’t perform that action at this time.
0 commit comments