IR: Split Metadata from Value
[oota-llvm.git] / include / llvm / CodeGen / MachineInstr.h
index d20b45b333db0119255f6ee89dc9e790c5503e57..bcf1f5caaa8c6c3c5c3c8850dd3791ca5059c0ac 100644 (file)
@@ -1139,7 +1139,10 @@ public:
   /// setDebugLoc - Replace current source information with new such.
   /// Avoid using this, the constructor argument is preferable.
   ///
-  void setDebugLoc(const DebugLoc dl) { debugLoc = dl; }
+  void setDebugLoc(const DebugLoc dl) {
+    debugLoc = dl;
+    assert(debugLoc.hasTrivialDestructor() && "Expected trivial destructor");
+  }
 
   /// RemoveOperand - Erase an operand  from an instruction, leaving it with one
   /// fewer operand than it started with.