[PATCH] Don't instrument UBSan-generated code with ASan.

Alexey Samsonov vonosmas at gmail.com
Wed Jul 16 12:43:57 PDT 2014


Hi rsmith,

This change adds "!ubsan" metadata to all the instructions
generated by Clang CodeGen to implement variety of UBSan checks. This
metadata can later be used by ASan instrumentation pass in LLVM backend
to avoid instrumenting UBSan-generated code. This should fix PR20085.

http://reviews.llvm.org/D4544

Files:
  lib/Transforms/Instrumentation/AddressSanitizer.cpp
  test/Instrumentation/AddressSanitizer/ubsan.ll
  tools/clang/lib/CodeGen/CGBuiltin.cpp
  tools/clang/lib/CodeGen/CGExpr.cpp
  tools/clang/lib/CodeGen/CGExprScalar.cpp
  tools/clang/lib/CodeGen/CodeGenFunction.cpp
  tools/clang/lib/CodeGen/CodeGenFunction.h
  tools/clang/test/CodeGen/catch-undef-behavior.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4544.11521.patch
Type: text/x-patch
Size: 14517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140716/50ebb2f9/attachment.bin>


More information about the cfe-commits mailing list