DataFlowSanitizer: wrappers of functions with local linkage should have the same...
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 30 Mar 2018 18:37:55 +0000 (18:37 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 30 Mar 2018 18:37:55 +0000 (18:37 +0000)
commitd03bf12c1bc13f7e75be90d04eeaa38128c9d5e0
treee4876b4fd24b1302854fed28e79b4c0009b5c659
parent5e3ee945623c1eff6477ae204b1376a4bd55e793
DataFlowSanitizer: wrappers of functions with local linkage should have the same linkage as the function being wrapped

This patch resolves link errors when the address of a static function is taken, and that function is uninstrumented by DFSan.

This change resolves bug 36314.

Patch by Sam Kerner!

Differential Revision: https://reviews.llvm.org/D44784

llvm-svn: 328890
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
llvm/test/Instrumentation/DataFlowSanitizer/Inputs/abilist.txt
llvm/test/Instrumentation/DataFlowSanitizer/uninstrumented_local_functions.ll [new file with mode: 0644]