aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-13 22:24:13 +0000
committerDan Gohman <gohman@apple.com>2009-11-13 22:24:13 +0000
commitce8447ccfeb8e90fc37f2eeb504d391a59c44a66 (patch)
tree76c21c6380115e69e241904f8362a298a440c921
parent0c2749f3e282dee9faf5f87c975d3a1f550a7cc7 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88711 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Value.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index eba9372330..0960346cb8 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -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,