[clang-tools-extra] r222336 - Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept.

David Blaikie dblaikie at gmail.com
Tue Nov 18 23:49:54 PST 2014


Author: dblaikie
Date: Wed Nov 19 01:49:54 2014
New Revision: 222336

URL: http://llvm.org/viewvc/llvm-project?rev=222336&view=rev
Log:
Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept.

Modified:
    clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp

Modified: clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp?rev=222336&r1=222335&r2=222336&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp (original)
+++ clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp Wed Nov 19 01:49:54 2014
@@ -957,7 +957,7 @@ public:
       pushHeaderHandle(H);
     // Check for nested header.
     if (!InNestedHeader)
-      InNestedHeader = !HeadersInThisCompile.insert(H);
+      InNestedHeader = !HeadersInThisCompile.insert(H).second;
   }
   // Handle exiting a header source file.
   void handleHeaderExit(llvm::StringRef HeaderPath) {





More information about the cfe-commits mailing list