forked from OSchip/llvm-project
TableGen: Fix a confusing use of both i and I as variables. NFC
llvm-svn: 275450
This commit is contained in:
parent
dd5c7f9313
commit
1e6416151f
|
@ -428,15 +428,15 @@ ComplexPattern::ComplexPattern(Record *R) {
|
|||
|
||||
std::vector<CodeGenIntrinsic> llvm::LoadIntrinsics(const RecordKeeper &RC,
|
||||
bool TargetOnly) {
|
||||
std::vector<Record*> I = RC.getAllDerivedDefinitions("Intrinsic");
|
||||
std::vector<Record*> Defs = RC.getAllDerivedDefinitions("Intrinsic");
|
||||
|
||||
std::vector<CodeGenIntrinsic> Result;
|
||||
Result.reserve(I.size());
|
||||
Result.reserve(Defs.size());
|
||||
|
||||
for (unsigned i = 0, e = I.size(); i != e; ++i) {
|
||||
bool isTarget = I[i]->getValueAsBit("isTarget");
|
||||
for (unsigned I = 0, e = Defs.size(); I != e; ++I) {
|
||||
bool isTarget = Defs[I]->getValueAsBit("isTarget");
|
||||
if (isTarget == TargetOnly)
|
||||
Result.push_back(CodeGenIntrinsic(I[i]));
|
||||
Result.push_back(CodeGenIntrinsic(Defs[I]));
|
||||
}
|
||||
std::sort(Result.begin(), Result.end(),
|
||||
[](const CodeGenIntrinsic& LHS, const CodeGenIntrinsic& RHS) {
|
||||
|
|
Loading…
Reference in New Issue