forked from OSchip/llvm-project
[CodeGen] SDDbgValue::getSDNodes() - use const-ref to avoid unnecessary copies. NFCI.
Reported by MSVC static analyzer.
This commit is contained in:
parent
9d7b7350c9
commit
0f83456cf5
|
@ -192,7 +192,7 @@ public:
|
|||
// Returns the SDNodes which this SDDbgValue depends on.
|
||||
SmallVector<SDNode *> getSDNodes() const {
|
||||
SmallVector<SDNode *> Dependencies;
|
||||
for (SDDbgOperand DbgOp : getLocationOps())
|
||||
for (const SDDbgOperand &DbgOp : getLocationOps())
|
||||
if (DbgOp.getKind() == SDDbgOperand::SDNODE)
|
||||
Dependencies.push_back(DbgOp.getSDNode());
|
||||
for (SDNode *Node : getAdditionalDependencies())
|
||||
|
|
Loading…
Reference in New Issue