mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
IR: Simplify code, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225647 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
28184c10c9
commit
0315eb0bcb
@ -619,7 +619,7 @@ void MDNode::replaceOperandWith(unsigned I, Metadata *New) {
|
||||
if (getOperand(I) == New)
|
||||
return;
|
||||
|
||||
if (isStoredDistinctInContext() || isa<MDNodeFwdDecl>(this)) {
|
||||
if (isDistinct()) {
|
||||
setOperand(I, New);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user