]> granicus.if.org Git - llvm/commitdiff
Fix MSVC "not all control paths return a value" warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Oct 2019 12:45:27 +0000 (12:45 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Oct 2019 12:45:27 +0000 (12:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373741 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveDebugValues.cpp

index 5a495594045ee17f694da6fe8962d035f83a95e1..f1b237d83e8cf85d7ccfdcf8c0736278b5ae6ff8 100644 (file)
@@ -311,6 +311,7 @@ private:
       case InvalidKind:
         llvm_unreachable("Tried to produce DBG_VALUE for invalid VarLoc");
       }
+      llvm_unreachable("Unrecognized LiveDebugValues.VarLoc.Kind enum");
     }
 
     /// Is the Loc field a constant or constant object?