disable copying, enforce some invariants.
authorChris Lattner <sabre@nondot.org>
Sun, 15 Nov 2009 20:03:53 +0000 (20:03 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Nov 2009 20:03:53 +0000 (20:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88870 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LazyValueInfo.h

index dd80fcedd4ac7ec1b67c3d293f0850762de4dc18..566788daa6161d1d15d0fc3e7b2b2cbe2368ff31 100644 (file)
@@ -27,9 +27,12 @@ namespace llvm {
 class LazyValueInfo : public FunctionPass {
   class TargetData *TD;
   void *PImpl;
+  LazyValueInfo(const LazyValueInfo&); // DO NOT IMPLEMENT.
+  void operator=(const LazyValueInfo&); // DO NOT IMPLEMENT.
 public:
   static char ID;
   LazyValueInfo() : FunctionPass(&ID), PImpl(0) {}
+  ~LazyValueInfo() { assert(PImpl == 0 && "releaseMemory not called"); }
 
   /// Tristate - This is used to return true/false/dunno results.
   enum Tristate {