]> granicus.if.org Git - clang/commitdiff
Fix regression from r190016.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 5 Sep 2013 20:13:32 +0000 (20:13 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 5 Sep 2013 20:13:32 +0000 (20:13 +0000)
I don't have a reduced testcase yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190094 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReaderDecl.cpp

index b16966530e85d4d05d10388aa7fbc994c264b3d0..a74f8c1023fb60bc765c20d529513fddcf312039 100644 (file)
@@ -2840,7 +2840,9 @@ void ASTDeclReader::UpdateDecl(Decl *D, ModuleFile &ModuleFile,
     }
 
     case UPD_DECL_MARKED_USED: {
-      D->markUsed(Reader.getContext());
+      // FIXME: This doesn't send the right notifications if there are
+      // ASTMutationListeners other than an ASTWriter.
+      D->setIsUsed(true);
       break;
     }
     }