Move the FixedStackPseudoSourceValueVal enum value before InstructionVal

so that isa<Instructon> doesn't return true for FixedStackPseudoSourceValue
values. This fixes a variety of problems, including crashes with -debug
and -print-machineinstrs. Also, add a comment to warn about this.

llvm-svn: 88711
This commit is contained in:
Dan Gohman 2009-11-13 22:24:13 +00:00
parent 2fb78c0250
commit 6e99014947
1 changed files with 3 additions and 1 deletions

View File

@ -224,9 +224,11 @@ public:
NamedMDNodeVal, // This is an instance of NamedMDNode
InlineAsmVal, // This is an instance of InlineAsm
PseudoSourceValueVal, // This is an instance of PseudoSourceValue
InstructionVal, // This is an instance of Instruction
FixedStackPseudoSourceValueVal, // This is an instance of
// FixedStackPseudoSourceValue
InstructionVal, // This is an instance of Instruction
// Enum values starting at InstructionVal are used for Instructions;
// don't add new values here!
// Markers:
ConstantFirstVal = FunctionVal,