]> granicus.if.org Git - clang/commit
[libFuzzer] Use OptForFuzzing attribute with -fsanitize=fuzzer.
authorMatt Morehouse <mascasa@google.com>
Fri, 23 Mar 2018 23:35:28 +0000 (23:35 +0000)
committerMatt Morehouse <mascasa@google.com>
Fri, 23 Mar 2018 23:35:28 +0000 (23:35 +0000)
commit3fe656f58661055a10ee1cc3d131b5b683f4bcb7
treeb0fbe97902f69ed811463bf78352cb4a6f7d0848
parentbe353a047c271e499f0295bfdb726cd4bb2c49e7
[libFuzzer] Use OptForFuzzing attribute with -fsanitize=fuzzer.

Summary:
Disables certain CMP optimizations to improve fuzzing signal under -O1
and -O2.

Switches all fuzzer tests to -O2 except for a few leak tests where the
leak is optimized out under -O2.

Reviewers: kcc, vitalybuka

Reviewed By: vitalybuka

Subscribers: cfe-commits, llvm-commits

Differential Revision: https://reviews.llvm.org/D44798

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328384 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp