[llvm] r229658 - [SystemZ] Clean up warning
Ulrich Weigand
ulrich.weigand at de.ibm.com
Wed Feb 18 01:42:23 PST 2015
Author: uweigand
Date: Wed Feb 18 03:42:23 2015
New Revision: 229658
URL: http://llvm.org/viewvc/llvm-project?rev=229658&view=rev
Log:
[SystemZ] Clean up warning
Removed (unreachable) default case in switch to clean up warning:
lib/Target/SystemZ/SystemZISelLowering.cpp:1974:5:
error: default label in switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp
Modified: llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp?rev=229658&r1=229657&r2=229658&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZISelLowering.cpp Wed Feb 18 03:42:23 2015
@@ -1969,10 +1969,7 @@ SDValue SystemZTargetLowering::lowerGlob
Offset, MachinePointerInfo::getConstantPool(),
false, false, false, 0);
break;
- }
-
- default:
- llvm_unreachable("Unknown TLS model.");
+ }
}
// Add the base and offset together.
More information about the llvm-commits
mailing list