DI: Fold constant arguments into a single MDString
[oota-llvm.git] / lib / IR / AsmWriter.cpp
index ebc78e0517fa7bb8c440dec4962380fc99a0a948..31d960e96cb120e41538e71dd271e827e063c203 100644 (file)
@@ -2340,7 +2340,7 @@ static void WriteMDNodeComment(const MDNode *Node,
     return;
 
   Value *Op = Node->getOperand(0);
     return;
 
   Value *Op = Node->getOperand(0);
-  if (!Op || !isa<ConstantInt>(Op) || cast<ConstantInt>(Op)->getBitWidth() < 32)
+  if (!Op || !isa<MDString>(Op))
     return;
 
   DIDescriptor Desc(Node);
     return;
 
   DIDescriptor Desc(Node);