From bc2d6329646af94e08764a75128431f07a138a6e Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Fri, 14 Nov 2014 02:07:52 +0000 Subject: [PATCH] Add -O3 when testing with UBSAN. This triggers far undefined behaviour llvm-svn: 221964 --- libcxx/test/lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg index 86eee05..26b91b7 100644 --- a/libcxx/test/lit.cfg +++ b/libcxx/test/lit.cfg @@ -439,7 +439,7 @@ class Configuration(object): elif san == 'Undefined': self.compile_flags += ['-fsanitize=undefined', '-fno-sanitize=vptr,function', - '-fno-sanitize-recover'] + '-fno-sanitize-recover', '-O3'] self.config.available_features.add('ubsan') else: self.lit_config.fatal('unsupported value for ' -- 2.7.4