]> granicus.if.org Git - clang/commitdiff
NFC: Add an explicit return for safety and consistency
authorHamza Sood <hamza_sood@me.com>
Fri, 5 Jul 2019 14:36:08 +0000 (14:36 +0000)
committerHamza Sood <hamza_sood@me.com>
Fri, 5 Jul 2019 14:36:08 +0000 (14:36 +0000)
This case implicitly falls-through, which is fine now as it's at the end of the
function, but it seems like an accident waiting to happen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365210 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDecl.cpp

index 43c962d32ef58da86c157a98e26cc6f3b6f1bb76..758737e86c29c14c2302759007d4362aa94a04f4 100644 (file)
@@ -153,6 +153,8 @@ void CodeGenFunction::EmitDecl(const Decl &D) {
 
     if (Ty->isVariablyModifiedType())
       EmitVariablyModifiedType(Ty);
+
+    return;
   }
   }
 }