diff options
author | Hamza Sood <hamza_sood@me.com> | 2019-07-05 14:36:08 +0000 |
---|---|---|
committer | Hamza Sood <hamza_sood@me.com> | 2019-07-05 14:36:08 +0000 |
commit | d14003d99f3d59b62bb6ff5a1a5d691f47d2b824 (patch) | |
tree | e24533c45b4f9ee246776bb0ec684527fbb16649 /clang/lib | |
parent | c8499ae35ae16d51582eb463cc02cca293afbb61 (diff) | |
download | bcm5719-llvm-d14003d99f3d59b62bb6ff5a1a5d691f47d2b824.tar.gz bcm5719-llvm-d14003d99f3d59b62bb6ff5a1a5d691f47d2b824.zip |
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.
llvm-svn: 365210
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 43c962d32ef..758737e86c2 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -153,6 +153,8 @@ void CodeGenFunction::EmitDecl(const Decl &D) { if (Ty->isVariablyModifiedType()) EmitVariablyModifiedType(Ty); + + return; } } } |