This is an archive of the discontinued LLVM Phabricator instance.

Enable UBSan on Windows
Needs ReviewPublic

Authored by akhaldi on Sep 16 2014, 6:40 AM.

Details

Reviewers
compnerd
samsonov

Diff Detail

Event Timeline

akhaldi updated this revision to Diff 13751.Sep 16 2014, 6:40 AM
akhaldi retitled this revision from to Enable UBSan on Windows.
akhaldi updated this object.
akhaldi edited the test plan for this revision. (Show Details)
akhaldi added a reviewer: timurrrr.
akhaldi added a subscriber: samsonov.
timurrrr resigned from this revision.Sep 16 2014, 6:53 AM
timurrrr edited reviewers, added: samsonov; removed: timurrrr.
timurrrr added inline comments.
cmake/config-ix.cmake
205

have you tried UBSan on Win64?

lib/ubsan/ubsan_value.h
17

You should probably update the comment.

19

nit: you've crossed the "80 chars per string" limit.

You might want to try clang-format to fix this and other coding style related issues.

akhaldi added inline comments.Sep 16 2014, 7:01 AM
cmake/config-ix.cmake
205

No, which is why I kept the 32bit check for now.

lib/ubsan/ubsan_value.h
17

Noted.

19

I'm not familiar with the tool, but I'll look into it.

samsonov added a subscriber: Unknown Object (MLST).

Does UBSan actually builds and works on Windows? What about MSVC? How did you test it?

emaste added a subscriber: emaste.Oct 24 2014, 10:56 AM
emaste added inline comments.Oct 24 2014, 11:01 AM
lib/ubsan/ubsan_value.h
17

It's clear from the following #if conditions which platforms are supported, no point in repeating the list in a comment immediately prior. How about:

// Only certain platforms are supported. Others should be easy to add, and may work as-is.
compnerd added inline comments.Oct 24 2014, 6:50 PM
cmake/config-ix.cmake
205

What about WoA (32-bit)?

timurrrr resigned from this revision.Mar 26 2015, 9:29 AM
timurrrr removed a reviewer: timurrrr.