[llvm] r375214 - Fix MSVC "not all control paths return a value" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 02:59:40 PDT 2019
Author: rksimon
Date: Fri Oct 18 02:59:40 2019
New Revision: 375214
URL: http://llvm.org/viewvc/llvm-project?rev=375214&view=rev
Log:
Fix MSVC "not all control paths return a value" warning. NFCI.
Modified:
llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp
Modified: llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp?rev=375214&r1=375213&r2=375214&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp (original)
+++ llvm/trunk/tools/llvm-objcopy/CopyConfig.cpp Fri Oct 18 02:59:40 2019
@@ -316,6 +316,7 @@ NameOrPattern::create(StringRef Pattern,
("^" + Pattern.ltrim('^').rtrim('$') + "$").toStringRef(Data)));
}
}
+ llvm_unreachable("Unhandled llvm.objcopy.MatchStyle enum");
}
static Error addSymbolsToRenameFromFile(StringMap<StringRef> &SymbolsToRename,
More information about the llvm-commits
mailing list