Browse Source

NFC: Add an explicit return for safety and consistency

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
Hamza Sood 6 years ago
parent
commit
c0c2389e8d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/CodeGen/CGDecl.cpp

+ 2 - 0
lib/CodeGen/CGDecl.cpp

@@ -153,6 +153,8 @@ void CodeGenFunction::EmitDecl(const Decl &D) {
 
     if (Ty->isVariablyModifiedType())
       EmitVariablyModifiedType(Ty);
+
+    return;
   }
   }
 }