[llvm] r266627 - Lanai: fix debug build

JF Bastien via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 09:33:41 PDT 2016


Author: jfb
Date: Mon Apr 18 11:33:41 2016
New Revision: 266627

URL: http://llvm.org/viewvc/llvm-project?rev=266627&view=rev
Log:
Lanai: fix debug build

There's currently no raw_ostream &operator<<(SimpleValueType); provided by LLVM. It could be added by refactoring utils/TableGen/CodeGenTarget.cpp:getEnumName, but that's much more work than fixing the build.

Modified:
    llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp

Modified: llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp?rev=266627&r1=266626&r2=266627&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Lanai/LanaiISelLowering.cpp Mon Apr 18 11:33:41 2016
@@ -456,7 +456,7 @@ SDValue LanaiTargetLowering::LowerCCCArg
       }
       default:
         DEBUG(dbgs() << "LowerFormalArguments Unhandled argument type: "
-                     << RegVT.getSimpleVT().SimpleTy << "\n");
+                     << (int)RegVT.getSimpleVT().SimpleTy << "\n");
         llvm_unreachable("unhandled argument type");
       }
     } else {




More information about the llvm-commits mailing list