]> granicus.if.org Git - clang/commitdiff
Suppress GCC warning for no return after covered switch, and remove some
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 13 May 2013 20:33:30 +0000 (20:33 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 13 May 2013 20:33:30 +0000 (20:33 +0000)
debugging code from an unreachable codepath.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181731 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index 339e78bbe9eb9023bb92d0e51bf86a86985628fd..0f449854716752681c3b2fc65a603a7871178204 100644 (file)
@@ -2869,10 +2869,9 @@ static EvalStmtResult EvaluateSwitch(APValue &Result, EvalInfo &Info,
   case ESR_Returned:
     return ESR;
   case ESR_CaseNotFound:
-    Found->dump();
-    SS->getBody()->dump();
     llvm_unreachable("couldn't find switch case");
   }
+  llvm_unreachable("Invalid EvalStmtResult!");
 }
 
 // Evaluate a statement.