]> granicus.if.org Git - clang/commitdiff
Revert r91073.
authorMike Stump <mrs@apple.com>
Thu, 17 Dec 2009 22:14:41 +0000 (22:14 +0000)
committerMike Stump <mrs@apple.com>
Thu, 17 Dec 2009 22:14:41 +0000 (22:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91629 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp
test/Sema/return.c

index 6ed9f7a772b6683881ad4e5b703954989f434f2e..5bb168068f5f3410edd7e6503747f7fe920c4ded 100644 (file)
@@ -1253,11 +1253,6 @@ Sema::ControlFlowKind Sema::CheckFallThrough(Stmt *Root) {
       HasFakeEdge = true;
       continue;
     }
-    if (isa<AsmStmt>(S)) {
-      HasFakeEdge = true;
-      HasLiveReturn = true;
-      continue;
-    }
     bool NoReturnEdge = false;
     if (CallExpr *C = dyn_cast<CallExpr>(S)) {
       Expr *CEE = C->getCallee()->IgnoreParenCasts();
index a1d9e5eeedd0f7591a053fe4e9c0bd74e089ceae..17d21789f05ad7c72136881ca45b25abe034d627 100644 (file)
@@ -222,7 +222,3 @@ void test32() {
 void test33() {
   if (j) while (1) { }
 }
-
-int test34() {
-  asm("nop");
-}