diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-06-05 14:06:50 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-06-05 14:06:50 +0000 |
commit | fcce70ad527cec1fc10b855ee072efb562a2521e (patch) | |
tree | 1610867357489437a752c0f8d4008dfe1f634297 /utils | |
parent | 2248cf590617cbe91eeb6a845ad06d675d9f2e91 (diff) | |
download | external_llvm-fcce70ad527cec1fc10b855ee072efb562a2521e.zip external_llvm-fcce70ad527cec1fc10b855ee072efb562a2521e.tar.gz external_llvm-fcce70ad527cec1fc10b855ee072efb562a2521e.tar.bz2 |
SubtargetEmitter fix
Don't output data if we are supposed to ignore the record.
Reapply of 183255, I don't think this was causing the tablegen segfault on linux
testers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/SubtargetEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 4918b1b..993eead 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -1340,11 +1340,11 @@ void SubtargetEmitter::EmitSchedModelHelpers(std::string ClassName, for (std::vector<CodeGenSchedTransition>::const_iterator TI = SC.Transitions.begin(), TE = SC.Transitions.end(); TI != TE; ++TI) { - OS << " if ("; if (*PI != 0 && !std::count(TI->ProcIndices.begin(), TI->ProcIndices.end(), *PI)) { continue; } + OS << " if ("; for (RecIter RI = TI->PredTerm.begin(), RE = TI->PredTerm.end(); RI != RE; ++RI) { if (RI != TI->PredTerm.begin()) |