diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-02 22:15:31 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-10-02 22:15:31 +0000 |
commit | 786cd049fc467bfaf85021b4fcfb19bbf134329b (patch) | |
tree | 55f7a8b314704fe5d4b3a947b22b6009c1a23ded /llvm/lib/IR/AsmWriter.cpp | |
parent | 834c265e85e4ee433cd9089e907bf6bccdb25313 (diff) | |
download | bcm5719-llvm-786cd049fc467bfaf85021b4fcfb19bbf134329b.tar.gz bcm5719-llvm-786cd049fc467bfaf85021b4fcfb19bbf134329b.zip |
Revert "DI: Fold constant arguments into a single MDString"
This reverts commit r218914 while I investigate some bots.
llvm-svn: 218918
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 31d960e96cb..ebc78e0517f 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -2340,7 +2340,7 @@ static void WriteMDNodeComment(const MDNode *Node, return; Value *Op = Node->getOperand(0); - if (!Op || !isa<MDString>(Op)) + if (!Op || !isa<ConstantInt>(Op) || cast<ConstantInt>(Op)->getBitWidth() < 32) return; DIDescriptor Desc(Node); |