From: Mike Stump Date: Thu, 17 Dec 2009 22:14:41 +0000 (+0000) Subject: Revert r91073. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29da559b62d229f067a5b1851e438561dcbfd9bd;p=clang Revert r91073. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91629 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 6ed9f7a772..5bb168068f 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -1253,11 +1253,6 @@ Sema::ControlFlowKind Sema::CheckFallThrough(Stmt *Root) { HasFakeEdge = true; continue; } - if (isa(S)) { - HasFakeEdge = true; - HasLiveReturn = true; - continue; - } bool NoReturnEdge = false; if (CallExpr *C = dyn_cast(S)) { Expr *CEE = C->getCallee()->IgnoreParenCasts(); diff --git a/test/Sema/return.c b/test/Sema/return.c index a1d9e5eeed..17d21789f0 100644 --- a/test/Sema/return.c +++ b/test/Sema/return.c @@ -222,7 +222,3 @@ void test32() { void test33() { if (j) while (1) { } } - -int test34() { - asm("nop"); -}