* Change ExpressionConvertableToType to more closely match map behavior of

ConvertExpressionToType
* Make ValueHandle's remove instruction from maps when they are deleted so that
  no false map hits occur if a subsequent instruction is allocated to the same
  space in memory.  This was a VERY VERY VERY EVIL NASTY BUG to track down. :-P


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-11-13 05:01:36 +00:00
parent e72c557dff
commit ce22ec1251
2 changed files with 57 additions and 36 deletions

View File

@@ -95,8 +95,9 @@ void ConvertUsersType(Value *V, Value *NewVal, ValueMapCache &VMC);
//
class ValueHandle : public Instruction {
ValueHandle(const ValueHandle &); // DO NOT IMPLEMENT
ValueMapCache &Cache;
public:
ValueHandle(Value *V);
ValueHandle(ValueMapCache &VMC, Value *V);
~ValueHandle();
virtual Instruction *clone() const { abort(); return 0; }