summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-02-09 18:23:29 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-02-09 18:23:29 +0000
commitf6591ca6d991fb9a229c3fa6745124622ab178e5 (patch)
treee41ed0ad1b5c579911ae8bcbed58572e20fd1ca1 /clang/lib/Sema/SemaDecl.cpp
parenta950e99dee42a37db0eb2d8700398af9da1f1775 (diff)
downloadbcm5719-llvm-f6591ca6d991fb9a229c3fa6745124622ab178e5.tar.gz
bcm5719-llvm-f6591ca6d991fb9a229c3fa6745124622ab178e5.zip
Implement Declarator::getSourceRange().
llvm-svn: 64151
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 4bba5e50f18..a3e0232987c 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2770,9 +2770,10 @@ NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc,
Error = Error; // Silence warning.
assert(!Error && "Error setting up implicit decl!");
Declarator D(DS, Declarator::BlockContext);
- D.AddTypeInfo(DeclaratorChunk::getFunction(false, false, 0, 0, 0, Loc, D));
+ D.AddTypeInfo(DeclaratorChunk::getFunction(false, false, 0, 0, 0, Loc, D),
+ SourceLocation());
D.SetIdentifier(&II, Loc);
-
+
// Insert this function into translation-unit scope.
DeclContext *PrevDC = CurContext;
OpenPOWER on IntegriCloud