diff options
author | Kaelyn Uhrain <rikka@google.com> | 2011-10-11 17:17:40 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2011-10-11 17:17:40 +0000 |
commit | ad018f10bcfc58e33dc52773b523360441adba2e (patch) | |
tree | 4f9c9a3e1abd732f22809c117ab18c53feabafcb | |
parent | cc925210666e711c81b3cf3c8708a90d45cdea59 (diff) | |
download | bcm5719-llvm-ad018f10bcfc58e33dc52773b523360441adba2e.tar.gz bcm5719-llvm-ad018f10bcfc58e33dc52773b523360441adba2e.zip |
Add an explanatory comment to test/SemaCXX/typo-correction.cpp
llvm-svn: 141680
-rw-r--r-- | clang/test/SemaCXX/typo-correction.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/typo-correction.cpp b/clang/test/SemaCXX/typo-correction.cpp index adf317b8b95..fa32c57fc7e 100644 --- a/clang/test/SemaCXX/typo-correction.cpp +++ b/clang/test/SemaCXX/typo-correction.cpp @@ -15,8 +15,14 @@ public: : _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); + } }; |