Move the FixedStackPseudoSourceValueVal enum value before InstructionVal
authorDan Gohman <gohman@apple.com>
Fri, 13 Nov 2009 22:24:13 +0000 (22:24 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 13 Nov 2009 22:24:13 +0000 (22:24 +0000)
commitce8447ccfeb8e90fc37f2eeb504d391a59c44a66
tree76c21c6380115e69e241904f8362a298a440c921
parent0c2749f3e282dee9faf5f87c975d3a1f550a7cc7
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
include/llvm/Value.h