summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Metadata.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-13 00:34:21 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-13 00:34:21 +0000
commit2cc792b1d11f73fb7845e67eae2633644adbaec2 (patch)
tree180962aef3767ddc9e4cbdbb84d3a76413f9378d /llvm/lib/IR/Metadata.cpp
parentc4b8e79396014a41527dfc3ecc1c1a16ba2f946f (diff)
downloadbcm5719-llvm-2cc792b1d11f73fb7845e67eae2633644adbaec2.tar.gz
bcm5719-llvm-2cc792b1d11f73fb7845e67eae2633644adbaec2.zip
Revert "IR: Fix an inverted assertion when replacing resolved operands"
This reverts commit r225738. Maybe the assertion is just plain wrong, but this version fails on WAY more bots. I'll make sure both ways work in a follow-up but I want to get bots green in the meantime. llvm-svn: 225742
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
-rw-r--r--llvm/lib/IR/Metadata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp
index 0132bab82c6..13844313925 100644
--- a/llvm/lib/IR/Metadata.cpp
+++ b/llvm/lib/IR/Metadata.cpp
@@ -444,7 +444,7 @@ void UniquableMDNode::resolveAfterOperandChange(Metadata *Old, Metadata *New) {
// Check if an operand was resolved.
if (!isOperandUnresolved(Old))
- assert(!isOperandUnresolved(New) && "Operand just became unresolved");
+ assert(isOperandUnresolved(New) && "Operand just became unresolved");
else if (!isOperandUnresolved(New))
decrementUnresolvedOperandCount();
}
OpenPOWER on IntegriCloud