[PATCH] D109534: fixed ambiguous overload build failure
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 1 06:21:17 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdfb213c2dfdc: Fix ambiguous overload build failure (authored by juchem, committed by jhenderson).
Changed prior to commit:
https://reviews.llvm.org/D109534?vs=372304&id=376499#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109534/new/
https://reviews.llvm.org/D109534
Files:
llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
llvm/tools/obj2yaml/elf2yaml.cpp
Index: llvm/tools/obj2yaml/elf2yaml.cpp
===================================================================
--- llvm/tools/obj2yaml/elf2yaml.cpp
+++ llvm/tools/obj2yaml/elf2yaml.cpp
@@ -201,7 +201,8 @@
if (const ELFYAML::RawContentSection *RawSec =
dyn_cast<const ELFYAML::RawContentSection>(&S)) {
if (RawSec->Type != ELF::SHT_PROGBITS || RawSec->Link || RawSec->Info ||
- RawSec->AddressAlign != 1 || RawSec->Address || RawSec->EntSize)
+ RawSec->AddressAlign != yaml::Hex64{1} || RawSec->Address ||
+ RawSec->EntSize)
return true;
ELFYAML::ELF_SHF ShFlags = RawSec->Flags.getValueOr(ELFYAML::ELF_SHF(0));
@@ -209,7 +210,7 @@
if (SecName == "debug_str")
return ShFlags != ELFYAML::ELF_SHF(ELF::SHF_MERGE | ELF::SHF_STRINGS);
- return ShFlags != 0;
+ return ShFlags != ELFYAML::ELF_SHF{0};
}
}
Index: llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
===================================================================
--- llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
+++ llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
@@ -618,7 +618,7 @@
unsigned getRegIdx(Register Reg) const {
for (unsigned Idx = 0; Idx < Locs.size(); ++Idx)
if (Locs[Idx].Kind == MachineLocKind::RegisterKind &&
- Locs[Idx].Value.RegNo == Reg)
+ Register{static_cast<unsigned>(Locs[Idx].Value.RegNo)} == Reg)
return Idx;
llvm_unreachable("Could not find given Reg in Locs");
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109534.376499.patch
Type: text/x-patch
Size: 1540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211001/f933005b/attachment-0001.bin>
More information about the llvm-commits
mailing list