[llvm] 45fc655 - [ARM] Work around Clang 9 after MCCFIInstruction::OpType uses uint8_t
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 13:07:14 PDT 2024
Author: Fangrui Song
Date: 2024-07-09T13:07:09-07:00
New Revision: 45fc655b9eb038a8daf739b9dafb46fe0aac2d60
URL: https://github.com/llvm/llvm-project/commit/45fc655b9eb038a8daf739b9dafb46fe0aac2d60
DIFF: https://github.com/llvm/llvm-project/commit/45fc655b9eb038a8daf739b9dafb46fe0aac2d60.diff
LOG: [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()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Added:
Modified:
llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
index 33eb1cfdd38a4..eb55a2b5e70b8 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
+++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
@@ -1202,8 +1202,8 @@ uint32_t ARMAsmBackendDarwin::generateCompactUnwindEncoding(
DEBUG_WITH_TYPE("compact-unwind",
llvm::dbgs()
<< "CFI directive not compatible with compact "
- "unwind encoding, opcode=" << Inst.getOperation()
- << "\n");
+ "unwind encoding, opcode="
+ << uint8_t(Inst.getOperation()) << "\n");
return CU::UNWIND_ARM_MODE_DWARF;
break;
}
More information about the llvm-commits
mailing list