This is an archive of the discontinued LLVM Phabricator instance.

NFC Build fix in RegisterCustomCheckersTest.cpp
AbandonedPublic

Authored by GBuella on Jun 28 2018, 1:16 AM.

Details

Summary

ninja-build check-clang failed using GCC 4.8.5 with:

unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp:64:12: error: could not convert ‘AnalysisConsumer’ from ‘std::unique_ptr<clang::ento::AnalysisASTConsumer>’ to ‘std::unique_ptr<clang::ASTConsumer>’
     return AnalysisConsumer;
            ^

Diff Detail

Event Timeline

GBuella created this revision.Jun 28 2018, 1:16 AM
bjope added a subscriber: bjope.Jun 28 2018, 1:22 AM
alexfh requested changes to this revision.Jun 28 2018, 6:52 AM
alexfh added inline comments.
unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
64

d0k has committed a better fix in r335854 (a workaround for GCC < 5, actually, since the original code was fine w.r.t. the standard).

This revision now requires changes to proceed.Jun 28 2018, 6:52 AM
GBuella abandoned this revision.Jun 28 2018, 6:54 AM