projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "DI: Fold constant arguments into a single MDString"
[oota-llvm.git]
/
lib
/
IR
/
AsmWriter.cpp
diff --git
a/lib/IR/AsmWriter.cpp
b/lib/IR/AsmWriter.cpp
index 31d960e96cb120e41538e71dd271e827e063c203..ebc78e0517fa7bb8c440dec4962380fc99a0a948 100644
(file)
--- a/
lib/IR/AsmWriter.cpp
+++ b/
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);