Should this be a test, or just an assertion? On Thu, May 5, 2016 at 2:34 AM, Apelete Seketeli via cfe-commits < cfe-commits@lists.llvm.org> wrote:
> apelete created this revision. > apelete added reviewers: kevin.qin, rsmith. > apelete added a subscriber: cfe-commits. > > Signed-off-by: Apelete Seketeli <apel...@seketeli.net> > > http://reviews.llvm.org/D19959 > > Files: > lib/Driver/Tools.cpp > > Index: lib/Driver/Tools.cpp > =================================================================== > --- lib/Driver/Tools.cpp > +++ lib/Driver/Tools.cpp > @@ -2346,7 +2346,7 @@ > success = getAArch64MicroArchFeaturesFromMcpu(D, > getAArch64TargetCPU(Args), > Args, Features); > > - if (!success) > + if (!success && A) > D.Diag(diag::err_drv_clang_unsupported) << A->getAsString(Args); > > if (Args.getLastArg(options::OPT_mgeneral_regs_only)) { > > > > _______________________________________________ > cfe-commits mailing list > cfe-commits@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits > >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits