This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Silence warning about ptr-to-func to ptr-to-obj cast in clang-fuzzer/handle-llvm/handle_llvm.cpp.
ClosedPublic

Authored by a.elovikov on Jul 31 2018, 5:46 AM.

Diff Detail

Repository
rC Clang

Event Timeline

a.elovikov created this revision.Jul 31 2018, 5:46 AM
emmettneyman accepted this revision.Jul 31 2018, 8:49 AM
This revision is now accepted and ready to land.Jul 31 2018, 8:49 AM
erichkeane added inline comments.Jul 31 2018, 9:00 AM
clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp
152 ↗(On Diff #158228)

Clang itself defines these as 4.2, so I don't think we want to disable this warning for clang. I think there needs to be a !defined(__clang) &&...

a.elovikov updated this revision to Diff 158483.Aug 1 2018, 2:42 AM
  • Address Erich's comment + clang-format.
erichkeane accepted this revision.Aug 1 2018, 5:59 AM

LMK if you need someone to commit this for you.

This revision was automatically updated to reflect the committed changes.