[PATCH] UBSan on Windows

Aaron Ballman aaron at aaronballman.com
Fri Oct 24 09:27:08 PDT 2014


It turns out that some parts of UBSan seem to be working on Windows.
This small patch enables Windows support, and gets the UBSan project
to compile within MSVC. My testing hasn't been particularly thorough
-- I was wondering if there was a work list of things that need
porting, since I assume there was a reason this wasn't supported on
Windows.

With this patch, I was able to compile ubsan within MSVC, and run a
simple test on things like integer division by zero, and out of bounds
shifts, etc.

Thanks!

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubsan_win.patch
Type: application/octet-stream
Size: 2001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141024/98ae85bb/attachment.obj>


More information about the llvm-commits mailing list