Annotate our undefined behaviour to sneak it past the sanitizers
authorJustin Bogner <mail@justinbogner.com>
Fri, 4 Mar 2016 01:52:47 +0000 (01:52 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 4 Mar 2016 01:52:47 +0000 (01:52 +0000)
commit85ddad485ce0822d01db93136cd22afeeacd72b5
treeebaadd76e2373b338fd514f1aa8b2d08c497d43c
parent588c68a87b54e42d4d62abd1621ed7f34bab01de
Annotate our undefined behaviour to sneak it past the sanitizers

We have known UB in some ilists where we static cast half nodes to
(larger) derived types and use the address. See llvm.org/PR26753.

This needs to be fixed, but in the meantime it'd be nice if running
ubsan didn't complain. This adds annotations in the two places where
ubsan complains while running check-all of a sanitized clang build.

llvm-svn: 262683
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/include/llvm/Support/Compiler.h
llvm/include/llvm/Transforms/Utils/MemorySSA.h