Ensure ConstExpr constants are unique.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 15 Jul 2002 18:20:50 +0000 (18:20 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 15 Jul 2002 18:20:50 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2910 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index b927120ad6ebae9603893db9bfd033b42bfd562e..e91114f7148f86d263b77ee2dec3909ce930399e 100644 (file)
@@ -350,7 +350,7 @@ protected:
                const std::vector<Value*>& IdxList, const Type *Ty);
   ~ConstantExpr() {}
   
-  virtual void destroyConstant() { destroyConstantImpl(); }
+  virtual void destroyConstant();
   
 public:
   // Static methods to construct a ConstantExpr of different kinds.
@@ -358,7 +358,7 @@ public:
   static ConstantExpr *get(unsigned opCode,
                            Constant *C1, Constant *C2, const Type *Ty);
   static ConstantExpr *get(unsigned opCode, Constant* C,
-                           const std::vector<Value*>& idxList, const Type *Ty);
+                       const std::vector<Value*>& idxList, const Type *Ty);
   
   // isNullValue - Return true if this is the value that would be returned by
   // getNullValue.