[llvm] r234314 - Silencing several "enumeral and non-enumeral type in conditional expression" warnings; NFC.
Aaron Ballman
aaron at aaronballman.com
Tue Apr 7 06:28:37 PDT 2015
Author: aaronballman
Date: Tue Apr 7 08:28:37 2015
New Revision: 234314
URL: http://llvm.org/viewvc/llvm-project?rev=234314&view=rev
Log:
Silencing several "enumeral and non-enumeral type in conditional expression" warnings; NFC.
Modified:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp?rev=234314&r1=234313&r2=234314&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp Tue Apr 7 08:28:37 2015
@@ -160,13 +160,13 @@ unsigned ARMAsmBackend::getRelaxedOpcode
default:
return Op;
case ARM::tBcc:
- return HasThumb2 ? ARM::t2Bcc : Op;
+ return HasThumb2 ? (unsigned)ARM::t2Bcc : Op;
case ARM::tLDRpci:
- return HasThumb2 ? ARM::t2LDRpci : Op;
+ return HasThumb2 ? (unsigned)ARM::t2LDRpci : Op;
case ARM::tADR:
- return HasThumb2 ? ARM::t2ADR : Op;
+ return HasThumb2 ? (unsigned)ARM::t2ADR : Op;
case ARM::tB:
- return HasThumb2 ? ARM::t2B : Op;
+ return HasThumb2 ? (unsigned)ARM::t2B : Op;
case ARM::tCBZ:
return ARM::tHINT;
case ARM::tCBNZ:
More information about the llvm-commits
mailing list