[llvm] r342394 - Fix "not all control paths return a value" MSVC warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 17 06:56:42 PDT 2018
Author: rksimon
Date: Mon Sep 17 06:56:42 2018
New Revision: 342394
URL: http://llvm.org/viewvc/llvm-project?rev=342394&view=rev
Log:
Fix "not all control paths return a value" MSVC warning. NFCI.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/RegisterValue.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/RegisterValue.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/RegisterValue.cpp?rev=342394&r1=342393&r2=342394&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/RegisterValue.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/RegisterValue.cpp Mon Sep 17 06:56:42 2018
@@ -38,6 +38,7 @@ static llvm::APFloat getFloatValue(const
Output.next(false);
return Output;
}
+ llvm_unreachable("Unhandled exegesis::PredefinedValues");
}
llvm::APInt bitcastFloatValue(const llvm::fltSemantics &FltSemantics,
More information about the llvm-commits
mailing list