diff options
author | dim <dim@FreeBSD.org> | 2016-01-08 17:32:42 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-01-08 17:32:42 +0000 |
commit | fa38d85e2c222400fa30c70e8a913e8a213a97a7 (patch) | |
tree | 44fa23b996e089a9c3388b72c9f5656f97e4aec6 /lib/clang | |
parent | ce1e0a9997edb90979d645fdd6160b14d1cf3d86 (diff) | |
download | FreeBSD-src-fa38d85e2c222400fa30c70e8a913e8a213a97a7.zip FreeBSD-src-fa38d85e2c222400fa30c70e8a913e8a213a97a7.tar.gz |
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
Diffstat (limited to 'lib/clang')
-rw-r--r-- | lib/clang/libllvmsupport/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/clang/libllvmsupport/Makefile b/lib/clang/libllvmsupport/Makefile index 01195cb..f531d36 100644 --- a/lib/clang/libllvmsupport/Makefile +++ b/lib/clang/libllvmsupport/Makefile @@ -78,6 +78,7 @@ SRCS= APFloat.cpp \ Triple.cpp \ Twine.cpp \ Unicode.cpp \ + Valgrind.cpp \ YAMLParser.cpp \ YAMLTraits.cpp \ circular_raw_ostream.cpp \ @@ -101,8 +102,7 @@ SRCS+= ARMWinEH.cpp \ .endif .if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" -SRCS+= Memory.cpp \ - Valgrind.cpp +SRCS+= Memory.cpp .endif .include "../clang.lib.mk" |