r365210 - NFC: Add an explicit return for safety and consistency
Hamza Sood via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 5 07:36:08 PDT 2019
Author: hamzasood
Date: Fri Jul 5 07:36:08 2019
New Revision: 365210
URL: http://llvm.org/viewvc/llvm-project?rev=365210&view=rev
Log:
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.
Modified:
cfe/trunk/lib/CodeGen/CGDecl.cpp
Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=365210&r1=365209&r2=365210&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Fri Jul 5 07:36:08 2019
@@ -153,6 +153,8 @@ void CodeGenFunction::EmitDecl(const Dec
if (Ty->isVariablyModifiedType())
EmitVariablyModifiedType(Ty);
+
+ return;
}
}
}
More information about the cfe-commits
mailing list