diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-04 17:00:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-04 17:00:24 +0000 |
commit | b696ea3a0693798daeafd896d77f0b8f1fec3cc5 (patch) | |
tree | b0d300f2f25fe4de861bacc0011a4ed2110ecb49 /lib/Parse/Parser.cpp | |
parent | f680a0fe2dcab32b59fe6fdf71145b5313c40950 (diff) |
Diagnose ambiguities in getTypeName. Fixes http://llvm.org/bugs/show_bug.cgi?id=3475
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 8685a599d2..c5c7dd4733 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -758,7 +758,7 @@ bool Parser::TryAnnotateTypeOrScopeToken() { if (Tok.is(tok::identifier)) { // Determine whether the identifier is a type name. if (TypeTy *Ty = Actions.getTypeName(*Tok.getIdentifierInfo(), - CurScope, &SS)) { + Tok.getLocation(), CurScope, &SS)) { // This is a typename. Replace the current token in-place with an // annotation type token. Tok.setKind(tok::annot_typename); |