Add -O3 when testing with UBSAN. This triggers far undefined behaviour
authorEric Fiselier <eric@efcs.ca>
Fri, 14 Nov 2014 02:07:52 +0000 (02:07 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 14 Nov 2014 02:07:52 +0000 (02:07 +0000)
llvm-svn: 221964

libcxx/test/lit.cfg

index 86eee05..26b91b7 100644 (file)
@@ -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 '