forked from OSchip/llvm-project
Fix an uninitialized member variable, found by -fsanitize=bool.
llvm-svn: 170627
This commit is contained in:
parent
28408a20c9
commit
a7bb16ad86
|
@ -55,10 +55,11 @@ struct CodeGenSchedRW {
|
||||||
IdxVec Sequence;
|
IdxVec Sequence;
|
||||||
RecVec Aliases;
|
RecVec Aliases;
|
||||||
|
|
||||||
CodeGenSchedRW(): Index(0), TheDef(0), IsAlias(false), HasVariants(false),
|
CodeGenSchedRW()
|
||||||
IsVariadic(false), IsSequence(false) {}
|
: Index(0), TheDef(0), IsRead(false), IsAlias(false),
|
||||||
CodeGenSchedRW(unsigned Idx, Record *Def): Index(Idx), TheDef(Def),
|
HasVariants(false), IsVariadic(false), IsSequence(false) {}
|
||||||
IsAlias(false), IsVariadic(false) {
|
CodeGenSchedRW(unsigned Idx, Record *Def)
|
||||||
|
: Index(Idx), TheDef(Def), IsAlias(false), IsVariadic(false) {
|
||||||
Name = Def->getName();
|
Name = Def->getName();
|
||||||
IsRead = Def->isSubClassOf("SchedRead");
|
IsRead = Def->isSubClassOf("SchedRead");
|
||||||
HasVariants = Def->isSubClassOf("SchedVariant");
|
HasVariants = Def->isSubClassOf("SchedVariant");
|
||||||
|
@ -72,9 +73,9 @@ struct CodeGenSchedRW {
|
||||||
}
|
}
|
||||||
|
|
||||||
CodeGenSchedRW(unsigned Idx, bool Read, const IdxVec &Seq,
|
CodeGenSchedRW(unsigned Idx, bool Read, const IdxVec &Seq,
|
||||||
const std::string &Name):
|
const std::string &Name)
|
||||||
Index(Idx), Name(Name), TheDef(0), IsRead(Read), IsAlias(false),
|
: Index(Idx), Name(Name), TheDef(0), IsRead(Read), IsAlias(false),
|
||||||
HasVariants(false), IsVariadic(false), IsSequence(true), Sequence(Seq) {
|
HasVariants(false), IsVariadic(false), IsSequence(true), Sequence(Seq) {
|
||||||
assert(Sequence.size() > 1 && "implied sequence needs >1 RWs");
|
assert(Sequence.size() > 1 && "implied sequence needs >1 RWs");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue