mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
Suppress all uses of LLVM_END_WITH_NULL. NFC.
Use variadic templates instead of relying on <cstdarg> + sentinel. This enforces better type checking and makes code more readable. Differential Revision: https://reviews.llvm.org/D32541 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302571 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -232,8 +232,7 @@ static Constant *GetTorInit(std::vector<std::pair<Function *, int>> &TorList) {
|
||||
std::vector<Constant *> ArrayElts;
|
||||
Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext());
|
||||
|
||||
StructType *STy =
|
||||
StructType::get(Int32Ty, TorList[0].first->getType(), nullptr);
|
||||
StructType *STy = StructType::get(Int32Ty, TorList[0].first->getType());
|
||||
for (unsigned i = 0, e = TorList.size(); i != e; ++i) {
|
||||
Constant *Elts[] = {ConstantInt::get(Int32Ty, TorList[i].second),
|
||||
TorList[i].first};
|
||||
|
||||
Reference in New Issue
Block a user