[cfe-commits] r49853 - /cfe/trunk/lib/Analysis/UninitializedValues.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Thu Apr 17 06:52:23 PDT 2008
Author: akirtzidis
Date: Thu Apr 17 08:52:22 2008
New Revision: 49853
URL: http://llvm.org/viewvc/llvm-project?rev=49853&view=rev
Log:
Fix MSVC compiler error: "initialization of 'VD' is skipped by 'case' label"
Modified:
cfe/trunk/lib/Analysis/UninitializedValues.cpp
Modified: cfe/trunk/lib/Analysis/UninitializedValues.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/UninitializedValues.cpp?rev=49853&r1=49852&r2=49853&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/UninitializedValues.cpp (original)
+++ cfe/trunk/lib/Analysis/UninitializedValues.cpp Thu Apr 17 08:52:22 2008
@@ -164,11 +164,12 @@
bool TransferFuncs::VisitUnaryOperator(UnaryOperator* U) {
switch (U->getOpcode()) {
- case UnaryOperator::AddrOf:
+ case UnaryOperator::AddrOf: {
VarDecl* VD = FindBlockVarDecl(U->getSubExpr());
if (VD && VD->isBlockVarDecl())
return V(VD,AD) = Initialized;
break;
+ }
case UnaryOperator::SizeOf:
return Initialized;
More information about the cfe-commits
mailing list