HomeFreeBSD

As submitted upstream in a review, avoid using undefined behavior in

Description

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

Details

Provenance
dimAuthored on
Parents
rS293427: Revert r293405: it breaks socket buffer INVARIANTS when sending control
Branches
Unknown
Tags
Unknown