summaryrefslogtreecommitdiff
path: root/lib/Transforms/TransformInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-13 05:01:36 +0000
committerChris Lattner <sabre@nondot.org>2001-11-13 05:01:36 +0000
commitce22ec125169f7c2de1cea4ab60ce7b28eb5cac5 (patch)
tree30b127f4eec1b81e01007a087fb7a3fda0b69626 /lib/Transforms/TransformInternals.h
parente72c557dff15eb3d386fffe37aaebd9dbc641ac6 (diff)
downloadllvm-ce22ec125169f7c2de1cea4ab60ce7b28eb5cac5.tar.gz
llvm-ce22ec125169f7c2de1cea4ab60ce7b28eb5cac5.tar.bz2
llvm-ce22ec125169f7c2de1cea4ab60ce7b28eb5cac5.tar.xz
* 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
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r--lib/Transforms/TransformInternals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h
index ea427327d4..7797ed15ea 100644
--- a/lib/Transforms/TransformInternals.h
+++ b/lib/Transforms/TransformInternals.h
@@ -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; }