[llvm] r373741 - Fix MSVC "not all control paths return a value" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 05:45:27 PDT 2019
Author: rksimon
Date: Fri Oct 4 05:45:27 2019
New Revision: 373741
URL: http://llvm.org/viewvc/llvm-project?rev=373741&view=rev
Log:
Fix MSVC "not all control paths return a value" warning. NFCI.
Modified:
llvm/trunk/lib/CodeGen/LiveDebugValues.cpp
Modified: llvm/trunk/lib/CodeGen/LiveDebugValues.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveDebugValues.cpp?rev=373741&r1=373740&r2=373741&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveDebugValues.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveDebugValues.cpp Fri Oct 4 05:45:27 2019
@@ -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?
More information about the llvm-commits
mailing list