[llvm] r318443 - [arc] Fix ambiguous overloaded operator error
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 11:16:56 PST 2017
Author: dsanders
Date: Thu Nov 16 11:16:56 2017
New Revision: 318443
URL: http://llvm.org/viewvc/llvm-project?rev=318443&view=rev
Log:
[arc] Fix ambiguous overloaded operator error
lib/Target/ARC/ARCISelLowering.cpp:490:22: error: use of overloaded operator '<<' is ambiguous (with operand types 'llvm::raw_ostream' and 'llvm::MVT::SimpleValueType')
<< RegVT.getSimpleVT().SimpleTy << "\n");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modified:
llvm/trunk/lib/Target/ARC/ARCISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARC/ARCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARC/ARCISelLowering.cpp?rev=318443&r1=318442&r2=318443&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARC/ARCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARC/ARCISelLowering.cpp Thu Nov 16 11:16:56 2017
@@ -487,7 +487,7 @@ SDValue ARCTargetLowering::LowerCallArgu
switch (RegVT.getSimpleVT().SimpleTy) {
default: {
DEBUG(errs() << "LowerFormalArguments Unhandled argument type: "
- << RegVT.getSimpleVT().SimpleTy << "\n");
+ << (unsigned)RegVT.getSimpleVT().SimpleTy << "\n");
llvm_unreachable("Unhandled LowerFormalArguments type.");
}
case MVT::i32:
More information about the llvm-commits
mailing list