Author: rikka
Date: Tue Oct 11 12:17:40 2011
New Revision: 141680

URL: http://llvm.org/viewvc/llvm-project?rev=141680&view=rev
Log:
Add an explanatory comment to test/SemaCXX/typo-correction.cpp

Modified:
    cfe/trunk/test/SemaCXX/typo-correction.cpp

Modified: cfe/trunk/test/SemaCXX/typo-correction.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/typo-correction.cpp?rev=141680&r1=141679&r2=141680&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/typo-correction.cpp (original)
+++ cfe/trunk/test/SemaCXX/typo-correction.cpp Tue Oct 11 12:17:40 2011
@@ -15,8 +15,14 @@
     : _val_(_val) {}
 
   template <class E>
-  error_condition(E _e)
-    {*this = make_error_condition(_e);}
+  error_condition(E _e) {
+    // make_error_condition must not be typo corrected to error_condition
+    // even though the first declaration of make_error_condition has not
+    // yet been encountered. This was a bug in the first version of the type
+    // name typo correction patch that wasn't noticed until building LLVM with
+    // Clang failed.
+    *this = make_error_condition(_e);
+  }
 
 };
 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to