mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
clang-format my last commit
llvm-svn: 234127
This commit is contained in:
parent
80477b5659
commit
924235accc
@ -1104,16 +1104,15 @@ public:
|
||||
const Twine &Name = "") {
|
||||
return CreateConstInBoundsGEP2_32(nullptr, Ptr, Idx0, Idx1, Name);
|
||||
}
|
||||
Value *CreateConstInBoundsGEP2_32(Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1,
|
||||
const Twine &Name = "") {
|
||||
Value *CreateConstInBoundsGEP2_32(Type *Ty, Value *Ptr, unsigned Idx0,
|
||||
unsigned Idx1, const Twine &Name = "") {
|
||||
Value *Idxs[] = {
|
||||
ConstantInt::get(Type::getInt32Ty(Context), Idx0),
|
||||
ConstantInt::get(Type::getInt32Ty(Context), Idx1)
|
||||
};
|
||||
|
||||
if (Constant *PC = dyn_cast<Constant>(Ptr))
|
||||
return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs),
|
||||
Name);
|
||||
return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name);
|
||||
|
||||
return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name);
|
||||
}
|
||||
@ -1162,7 +1161,8 @@ public:
|
||||
Value *CreateStructGEP(Value *Ptr, unsigned Idx, const Twine &Name = "") {
|
||||
return CreateStructGEP(nullptr, Ptr, Idx, Name);
|
||||
}
|
||||
Value *CreateStructGEP(Type *Ty, Value *Ptr, unsigned Idx, const Twine &Name = "") {
|
||||
Value *CreateStructGEP(Type *Ty, Value *Ptr, unsigned Idx,
|
||||
const Twine &Name = "") {
|
||||
return CreateConstInBoundsGEP2_32(Ty, Ptr, 0, Idx, Name);
|
||||
}
|
||||
|
||||
|
@ -1472,7 +1472,8 @@ void DFSanVisitor::visitCallSite(CallSite CS) {
|
||||
Args.push_back(DFSF.getShadow(*i));
|
||||
|
||||
if (FT->isVarArg()) {
|
||||
auto *LabelVATy = ArrayType::get(DFSF.DFS.ShadowTy, CS.arg_size() - FT->getNumParams());
|
||||
auto *LabelVATy = ArrayType::get(DFSF.DFS.ShadowTy,
|
||||
CS.arg_size() - FT->getNumParams());
|
||||
auto *LabelVAAlloca = new AllocaInst(LabelVATy, "labelva",
|
||||
DFSF.F->getEntryBlock().begin());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user