forked from OSchip/llvm-project
parent
f4c6441b01
commit
940cd9368d
|
@ -1497,7 +1497,7 @@ Constant *LazyValueInfo::getConstant(Value *V, BasicBlock *BB,
|
|||
}
|
||||
|
||||
ConstantRange LazyValueInfo::getConstantRange(Value *V, BasicBlock *BB,
|
||||
Instruction *CxtI) {
|
||||
Instruction *CxtI) {
|
||||
assert(V->getType()->isIntegerTy());
|
||||
unsigned Width = V->getType()->getIntegerBitWidth();
|
||||
const DataLayout &DL = BB->getModule()->getDataLayout();
|
||||
|
|
|
@ -5020,7 +5020,7 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) {
|
|||
MulOps.push_back(getSCEV(BO->LHS));
|
||||
break;
|
||||
}
|
||||
BO = NewBO;
|
||||
BO = NewBO;
|
||||
} while (true);
|
||||
|
||||
return getMulExpr(MulOps);
|
||||
|
|
|
@ -479,7 +479,7 @@ Error RuntimeDyldImpl::computeTotalAllocSize(const ObjectFile &Obj,
|
|||
// If this is the first common symbol, use its alignment as the alignment
|
||||
// for the common symbols section.
|
||||
if (CommonSize == 0)
|
||||
CommonAlign = Align;
|
||||
CommonAlign = Align;
|
||||
CommonSize = alignTo(CommonSize, Align) + Size;
|
||||
}
|
||||
}
|
||||
|
@ -601,9 +601,8 @@ Error RuntimeDyldImpl::emitCommonSymbols(const ObjectFile &Obj,
|
|||
|
||||
// Allocate memory for the section
|
||||
unsigned SectionID = Sections.size();
|
||||
uint8_t *Addr = MemMgr.allocateDataSection(CommonSize, CommonAlign,
|
||||
SectionID, "<common symbols>",
|
||||
false);
|
||||
uint8_t *Addr = MemMgr.allocateDataSection(CommonSize, CommonAlign, SectionID,
|
||||
"<common symbols>", false);
|
||||
if (!Addr)
|
||||
report_fatal_error("Unable to allocate memory for common symbols!");
|
||||
uint64_t Offset = 0;
|
||||
|
|
Loading…
Reference in New Issue