diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-10-08 01:11:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-10-08 01:11:04 +0000 |
commit | 0bea86307eb8c16339315a1e261fc490eb505c5b (patch) | |
tree | 533f0d754da286a4dcc0a23668c992c1cd37c925 /lib/Sema/SemaOverload.cpp | |
parent | 6988666289cdbe432c226868438d3005ba1f0312 (diff) |
StringRef-ify Binary/UnaryOperator::getOpcodeStr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 10b96c9ec3..600393137d 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -8537,7 +8537,7 @@ void NoteSurrogateCandidate(Sema &S, OverloadCandidate *Cand) { } void NoteBuiltinOperatorCandidate(Sema &S, - const char *Opc, + StringRef Opc, SourceLocation OpLoc, OverloadCandidate *Cand) { assert(Cand->NumConversions <= 2 && "builtin operator is not binary"); @@ -8806,7 +8806,7 @@ void CompleteNonViableCandidate(Sema &S, OverloadCandidate *Cand, void OverloadCandidateSet::NoteCandidates(Sema &S, OverloadCandidateDisplayKind OCD, llvm::ArrayRef<Expr *> Args, - const char *Opc, + StringRef Opc, SourceLocation OpLoc) { // Sort the candidates by viability and position. Sorting directly would // be prohibitive, so we make a set of pointers and sort those. |