Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: src/IceOperand.cpp

Issue 1516753008: Subzero: Use "auto" per (unwritten) auto coding style. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More <cast> instances without the llvm:: prefix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | src/IcePhiLoweringImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceOperand.cpp
diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp
index b46c7f5142b79402eb05a9a1da765ef9e716f179..21a4830e7c12aefa86ec607fa23eac442e594dfe 100644
--- a/src/IceOperand.cpp
+++ b/src/IceOperand.cpp
@@ -329,7 +329,7 @@ void VariablesMetadata::addNode(CfgNode *Node) {
Metadata[DestNum].markDef(Kind, &I, Node);
}
for (SizeT SrcNum = 0; SrcNum < I.getSrcSize(); ++SrcNum) {
- if (const Variable *Var = llvm::dyn_cast<Variable>(I.getSrc(SrcNum))) {
+ if (auto *Var = llvm::dyn_cast<Variable>(I.getSrc(SrcNum))) {
SizeT VarNum = Var->getIndex();
assert(VarNum < Metadata.size());
constexpr bool IsImplicit = false;
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | src/IcePhiLoweringImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698