diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-13 00:34:21 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-13 00:34:21 +0000 |
commit | 2cc792b1d11f73fb7845e67eae2633644adbaec2 (patch) | |
tree | 180962aef3767ddc9e4cbdbb84d3a76413f9378d /llvm/lib/IR/Metadata.cpp | |
parent | c4b8e79396014a41527dfc3ecc1c1a16ba2f946f (diff) | |
download | bcm5719-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.cpp | 2 |
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(); } |