Add a missing return. Bug noticed by Dawn Perchik!
authorDouglas Gregor <dgregor@apple.com>
Mon, 30 Aug 2010 23:30:49 +0000 (23:30 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 30 Aug 2010 23:30:49 +0000 (23:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112552 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index 9b36b31e7ed81b09fa3b0fbcd685aba5e1a9a6f9..b920fcd4ffe68d1c0e94dd574546370ad70f2c27 100644 (file)
@@ -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;