This is an archive of the discontinued LLVM Phabricator instance.

Repress sanitization on User dtor.
ClosedPublic

Authored by nmusgrave on Aug 25 2015, 2:27 PM.

Details

Summary

In response to bug 24578, reported against failing LLVM test.

Commit ultimately rolled back in rL246484, due to discussion about PR24578. Redundant to repress flaw that is not currently causing any noisy failures, when bug is also filed against it.

Diff Detail

Repository
rL LLVM

Event Timeline

nmusgrave updated this revision to Diff 33122.Aug 25 2015, 2:27 PM
nmusgrave retitled this revision from to Repress sanitization on User dtor..
nmusgrave updated this object.
nmusgrave added reviewers: chandlerc, rsmith, eugenis.
nmusgrave added a subscriber: llvm-commits.
eugenis added inline comments.Aug 25 2015, 2:37 PM
include/llvm/IR/User.h
75 ↗(On Diff #33122)

Please add a brief comment describing the problem and referencing the bug.

include/llvm/Support/Compiler.h
323 ↗(On Diff #33122)

There is no "MEMORY_SANITIZER" definition.
Merge this with the block below.
Call it LLVM_NO_SANITIZE_MEMORY_ATTRIBUTE.

nmusgrave updated this revision to Diff 33133.Aug 25 2015, 3:00 PM
  • Combined msan macros for simplicity.
eugenis added inline comments.Aug 25 2015, 3:04 PM
include/llvm/Support/Compiler.h
321 ↗(On Diff #33133)

No, wait, this is still a MemorySanitizer build. Don't change this macro.

Only the attribute is no-sanitize.

nmusgrave updated this revision to Diff 33446.Aug 28 2015, 11:35 AM
nmusgrave marked an inline comment as done.
  • Simplified sanitization macro.
nmusgrave marked 2 inline comments as done.Aug 28 2015, 11:41 AM
eugenis added inline comments.Aug 28 2015, 1:24 PM
include/llvm/IR/Metadata.h
769 ↗(On Diff #33446)

Maybe move this to MDNode::operator delete, the same as with User?

include/llvm/IR/User.h
76 ↗(On Diff #33446)

Now this comment does not make sense. Move it to operator delete.

nmusgrave updated this revision to Diff 33462.Aug 28 2015, 2:03 PM
nmusgrave marked 2 inline comments as done.
  • Moved attribute for repressing msan to operator delete, update comments.
eugenis accepted this revision.Aug 28 2015, 5:37 PM
eugenis edited edge metadata.
This revision is now accepted and ready to land.Aug 28 2015, 5:37 PM
This revision was automatically updated to reflect the committed changes.
nmusgrave updated this object.Aug 31 2015, 2:29 PM
nmusgrave edited edge metadata.