forked from OSchip/llvm-project
[JITLink] Silence some MSVC implicit cast warnings.
llvm-svn: 358824
This commit is contained in:
parent
d9a7a7d3d0
commit
dfc3a4f6ff
|
@ -227,7 +227,7 @@ private:
|
|||
AtomToFix = &*AtomToFixOrErr;
|
||||
}
|
||||
|
||||
if (FixupAddress + (1 << RI.r_length) >
|
||||
if (FixupAddress + static_cast<JITTargetAddress>(1 << RI.r_length) >
|
||||
AtomToFix->getAddress() + AtomToFix->getContent().size())
|
||||
return make_error<JITLinkError>(
|
||||
"Relocation content extends past end of fixup atom");
|
||||
|
@ -290,7 +290,8 @@ private:
|
|||
case PCRel32Minus1Anon:
|
||||
case PCRel32Minus2Anon:
|
||||
case PCRel32Minus4Anon: {
|
||||
JITTargetAddress Delta = 1 << (*Kind - PCRel32Minus1Anon);
|
||||
JITTargetAddress Delta =
|
||||
static_cast<JITTargetAddress>(1 << (*Kind - PCRel32Minus1Anon));
|
||||
JITTargetAddress TargetAddress =
|
||||
FixupAddress + 4 + Delta + *(const ulittle32_t *)FixupContent;
|
||||
if (auto TargetAtomOrErr = G.findAtomByAddress(TargetAddress))
|
||||
|
|
Loading…
Reference in New Issue