diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-04-12 20:48:09 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-04-12 20:48:09 +0000 |
commit | 7d000652ccf5b370006d4f80d39041d2ff0d9106 (patch) | |
tree | e54613b71c6c4c34847ca329471eaf6f0345244c /lib/Sema | |
parent | 47bfcca2d6972d98a1b25239cd1aa658b60680e2 (diff) |
s/isAtomicConversion/tryAtomicConversion/g, per Jordy's suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 89d4179fce..284c8dec1c 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -1294,10 +1294,10 @@ static bool IsVectorConversion(ASTContext &Context, QualType FromType, return false; } -static bool isAtomicConversion(Sema &S, Expr *From, QualType ToType, - bool InOverloadResolution, - StandardConversionSequence &SCS, - bool CStyle); +static bool tryAtomicConversion(Sema &S, Expr *From, QualType ToType, + bool InOverloadResolution, + StandardConversionSequence &SCS, + bool CStyle); /// IsStandardConversion - Determines whether there is a standard /// conversion sequence (C++ [conv], C++ [over.ics.scs]) from the @@ -1531,9 +1531,9 @@ static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType, SCS, CStyle)) { SCS.Second = ICK_TransparentUnionConversion; FromType = ToType; - } else if (isAtomicConversion(S, From, ToType, InOverloadResolution, SCS, - CStyle)) { - // isAtomicConversion has updated the standard conversion sequence + } else if (tryAtomicConversion(S, From, ToType, InOverloadResolution, SCS, + CStyle)) { + // tryAtomicConversion has updated the standard conversion sequence // appropriately. return true; } else { @@ -2779,10 +2779,10 @@ Sema::IsQualificationConversion(QualType FromType, QualType ToType, /// /// If successful, updates \c SCS's second and third steps in the conversion /// sequence to finish the conversion. -static bool isAtomicConversion(Sema &S, Expr *From, QualType ToType, - bool InOverloadResolution, - StandardConversionSequence &SCS, - bool CStyle) { +static bool tryAtomicConversion(Sema &S, Expr *From, QualType ToType, + bool InOverloadResolution, + StandardConversionSequence &SCS, + bool CStyle) { const AtomicType *ToAtomic = ToType->getAs<AtomicType>(); if (!ToAtomic) return false; |