Revert "Remove the explicit SDNodeIterator::operator= in favor of the implicit default"
[oota-llvm.git] / lib / AsmParser / LLParser.h
index 3675d958323a9bb08fb00f9620fe4910bbe3d5cc..5e92e570e7267c5025d72d50bc7af98f2192c9db 100644 (file)
@@ -62,9 +62,13 @@ namespace llvm {
     APSInt APSIntVal;
     APFloat APFloatVal;
     Constant *ConstantVal;
-    std::unique_ptr<Constant*[]> ConstantStructElts;
+    Constant **ConstantStructElts;
 
     ValID() : Kind(t_LocalID), APFloatVal(0.0) {}
+    ~ValID() {
+      if (Kind == t_ConstantStruct || Kind == t_PackedConstantStruct)
+        delete [] ConstantStructElts;
+    }
 
     bool operator<(const ValID &RHS) const {
       if (Kind == t_LocalID || Kind == t_GlobalID)