]> granicus.if.org Git - clang/commitdiff
Change explicit handling of impossible condition to call llvm_unreachable in Idempote...
authorTom Care <tcare@apple.com>
Wed, 7 Jul 2010 01:27:17 +0000 (01:27 +0000)
committerTom Care <tcare@apple.com>
Wed, 7 Jul 2010 01:27:17 +0000 (01:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107748 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/IdempotentOperationChecker.cpp

index 646c6aff1f6eaa2ee121a1ae1d5d562f7b9d1aab..6ed18417a2c2b0ae0972f9313777f58e2f174afc 100644 (file)
@@ -328,10 +328,10 @@ void IdempotentOperationChecker::VisitEndAnalysis(ExplodedGraph &G,
       case RHSis0:
         msg = "idempotent operation; the right operand is always 0";
         break;
-      case Impossible:
-        break;
       case Possible:
         llvm_unreachable("Operation was never marked with an assumption");
+      case Impossible:
+        llvm_unreachable(0);
       }
 
       // Create the SourceRange Arrays