Skip to content

Commit 5c287f7

Browse files
committed
[analyzer] DeadStores: Update the crude suppression for files generated by IIG.
They changed the comments that we were looking for. llvm-svn: 363995
1 parent 442702a commit 5c287f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class DeadStoreObs : public LiveVariables::Observer {
174174

175175
// Files autogenerated by DriverKit IIG contain some dead stores that
176176
// we don't want to report.
177-
if (Data.startswith("/* iig generated from"))
177+
if (Data.startswith("/* iig"))
178178
return true;
179179

180180
return false;

clang/test/Analysis/deadstores-driverkit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* iig generated from SomethingSomething.iig */
1+
/* iig(DriverKit-60) generated from SomethingSomething.iig */
22

33
// The comment above is the whole point of the test.
44
// That's how the suppression works.

0 commit comments

Comments
 (0)