[cfe-commits] r61056 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Douglas Gregor
dgregor at apple.com
Mon Dec 15 14:39:44 PST 2008
On Dec 15, 2008, at 2:34 PM, Eli Friedman wrote:
> Author: efriedma
> Date: Mon Dec 15 16:34:21 2008
> New Revision: 61056
>
> URL: http://llvm.org/viewvc/llvm-project?rev=61056&view=rev
> Log:
> Fix for PR3212: don't descend into C++ operator overloading code for C
> programs.
>
>
> Modified:
> cfe/trunk/lib/Sema/SemaExpr.cpp
>
> Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=61056&r1=61055&r2=61056&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
> +++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Dec 15 16:34:21 2008
> @@ -963,10 +963,10 @@
> Expr *LHSExp = static_cast<Expr*>(Base), *RHSExp =
> static_cast<Expr*>(Idx);
>
> if (getLangOptions().CPlusPlus &&
> - LHSExp->getType()->isRecordType() ||
> - LHSExp->getType()->isEnumeralType() ||
> - RHSExp->getType()->isRecordType() ||
> - RHSExp->getType()->isEnumeralType()) {
> + (LHSExp->getType()->isRecordType() ||
> + LHSExp->getType()->isEnumeralType() ||
> + RHSExp->getType()->isRecordType() ||
> + RHSExp->getType()->isEnumeralType())) {
> // Add the appropriate overloaded operators (C++
> [over.match.oper])
> // to the candidate set.
> OverloadCandidateSet CandidateSet;
Heh, thanks Eli :)
- Doug
More information about the cfe-commits
mailing list