This is an archive of the discontinued LLVM Phabricator instance.

Avoid a warning on pointer casting, NFC
ClosedPublic

Authored by GBuella on Apr 24 2018, 7:13 AM.

Details

Summary

The warning was:

unittests/Passes/PluginsTest.cpp:30:23: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Wpedantic]
   void *Ptr = (void *)anchor;
                          ^

Diff Detail

Repository
rL LLVM

Event Timeline

GBuella created this revision.Apr 24 2018, 7:13 AM
philip.pfaffe accepted this revision.Apr 25 2018, 4:45 AM

LGTM. Thanks for fixing!

This revision is now accepted and ready to land.Apr 25 2018, 4:45 AM
This revision was automatically updated to reflect the committed changes.