]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
As submitted upstream in a review, avoid using undefined behavior in
authordim <dim@FreeBSD.org>
Fri, 8 Jan 2016 17:32:42 +0000 (17:32 +0000)
committerdim <dim@FreeBSD.org>
Fri, 8 Jan 2016 17:32:42 +0000 (17:32 +0000)
commitfa38d85e2c222400fa30c70e8a913e8a213a97a7
tree44fa23b996e089a9c3388b72c9f5656f97e4aec6
parentce1e0a9997edb90979d645fdd6160b14d1cf3d86
As submitted upstream in a review, avoid using undefined behavior in
llvm's LinkAllPasses.h.  This caused some of the calls not to be
emitted, if the optimization level was -O2 or higher.

Conversely, if you used -O1 or lower, calls to e.g.  RunningOnValgrind()
would be emitted, leading to link failures, because we did not include
Valgrind.cpp into libllvmsupport.  Therefore, add it unconditionally.

Noticed by: ian
contrib/llvm/include/llvm/LinkAllPasses.h
lib/clang/libllvmsupport/Makefile