[llvm] r232913 - Fixed MSVC compile warning issue introduced in r232837
Simon Pilgrim
llvm-dev at redking.me.uk
Sun Mar 22 06:38:36 PDT 2015
Author: rksimon
Date: Sun Mar 22 08:38:36 2015
New Revision: 232913
URL: http://llvm.org/viewvc/llvm-project?rev=232913&view=rev
Log:
Fixed MSVC compile warning issue introduced in r232837
- was reporting 'warning C4715: 'getType32' : not all control paths return a value'
Modified:
llvm/trunk/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
Modified: llvm/trunk/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp?rev=232913&r1=232912&r2=232913&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp Sun Mar 22 08:38:36 2015
@@ -164,7 +164,8 @@ enum X86_32RelType { RT32_32, RT32_16, R
static X86_32RelType getType32(X86_64RelType T) {
switch (T) {
- case RT64_64:
+ default:
+ //case RT64_64:
llvm_unreachable("Unimplemented");
case RT64_32:
case RT64_32S:
More information about the llvm-commits
mailing list