[PATCH] D19959: [scan-build] fix warning emitted on Clang Driver code baseFix a "logic error" warning of the type Called c++ object pointer isnull" reported by Clang Static Analyzer on the file:- lib/Driver/Tools.cpp.
Apelete Seketeli via cfe-commits
cfe-commits at lists.llvm.org
Thu May 5 02:34:41 PDT 2016
apelete created this revision.
apelete added reviewers: kevin.qin, rsmith.
apelete added a subscriber: cfe-commits.
Signed-off-by: Apelete Seketeli <apelete at 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)) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19959.56249.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160505/29f3a330/attachment.bin>
More information about the cfe-commits
mailing list