Skip to content

Commit 45fc655

Browse files
committed
[ARM] Work around Clang 9 after MCCFIInstruction::OpType uses uint8_t
ARMAsmBackend.cpp:1205:57: error: use of overloaded operator '<<' is ambiguous (with operand types 'llvm::raw_ostream' and 'llvm::MCCFIInstruction::OpType') "unwind encoding, opcode=" << Inst.getOperation() ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
1 parent 7b604cd commit 45fc655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,8 +1202,8 @@ uint32_t ARMAsmBackendDarwin::generateCompactUnwindEncoding(
12021202
DEBUG_WITH_TYPE("compact-unwind",
12031203
llvm::dbgs()
12041204
<< "CFI directive not compatible with compact "
1205-
"unwind encoding, opcode=" << Inst.getOperation()
1206-
<< "\n");
1205+
"unwind encoding, opcode="
1206+
<< uint8_t(Inst.getOperation()) << "\n");
12071207
return CU::UNWIND_ARM_MODE_DWARF;
12081208
break;
12091209
}

0 commit comments

Comments
 (0)