llvm_unreachable("Constructor throws?");
}
- // TODO: Sink this into GenericMDNode. Can't do this until operands are
- // allocated at the front (currently they're at the back).
- unsigned Hash;
-
/// \brief Subclass data enums.
enum {
/// FunctionLocalBit - This bit is set if this MDNode is function local.
friend class MDNode;
friend class LLVMContextImpl;
+ unsigned Hash;
+
GenericMDNode(LLVMContext &C, ArrayRef<Value *> Vals, bool isFunctionLocal)
- : MDNode(C, GenericMDNodeVal, Vals, isFunctionLocal) {}
+ : MDNode(C, GenericMDNodeVal, Vals, isFunctionLocal), Hash(0) {}
~GenericMDNode();
void dropAllReferences();
MDNode::MDNode(LLVMContext &C, unsigned ID, ArrayRef<Value *> Vals,
bool isFunctionLocal)
- : Metadata(C, ID), Hash(0) {
+ : Metadata(C, ID) {
NumOperands = Vals.size();
if (isFunctionLocal)