From: Douglas Gregor Date: Mon, 30 Aug 2010 23:30:49 +0000 (+0000) Subject: Add a missing return. Bug noticed by Dawn Perchik! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04633eb86621747bece5643f5909222e2dd6884f;p=clang Add a missing return. Bug noticed by Dawn Perchik! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112552 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 9b36b31e7e..b920fcd4ff 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1984,6 +1984,7 @@ static void HandleCallConvAttr(Decl *d, const AttributeList &Attr, Sema &S) { return; case AttributeList::AT_thiscall: d->addAttr(::new (S.Context) ThisCallAttr(Attr.getLoc(), S.Context)); + return; case AttributeList::AT_cdecl: d->addAttr(::new (S.Context) CDeclAttr(Attr.getLoc(), S.Context)); return;