Skip checks for null dereference, alignment violation, object size
violation, and dynamic type violation if the pointer points to volatile
data.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good, and I did ask Richard about this in person before filing the bug and he was in favor of it, so feel free to commit. If I'd known how easy it was to implement and how few tests it would break, I would've made the patch instead of filing it. :) Thanks for getting around to it.
test/CodeGen/ubsan-volatile.c | ||
---|---|---|
9 ↗ | (On Diff #102758) | IMO the CHECKs would be cleaner if this were a parameter. You can do CHECK-NOT: call{{.*}}ubsan or something. |