We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2aab98 commit 50ac604Copy full SHA for 50ac604
llvm/lib/Target/DirectX/DXILDataScalarization.cpp
@@ -346,7 +346,7 @@ bool DataScalarizerVisitor::visitGetElementPtrInst(GetElementPtrInst &GEPI) {
346
if (auto *CE = dyn_cast<ConstantExpr>(GOp))
347
CE->destroyConstant();
348
else if (auto *OldGEPI = dyn_cast<GetElementPtrInst>(GOp))
349
- OldGEPI->eraseFromParent(); // This will always be true in visit* context
+ OldGEPI->eraseFromParent();
350
351
return true;
352
}
0 commit comments