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

Unified Diff: src/IcePhiLoweringImpl.h

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/IceOperand.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IcePhiLoweringImpl.h
diff --git a/src/IcePhiLoweringImpl.h b/src/IcePhiLoweringImpl.h
index 512b1f9e5cc38daeee49577150e6f40381a5d86b..d6a12b200021d1c36382d347d3b8beec58c2e4bd 100644
--- a/src/IcePhiLoweringImpl.h
+++ b/src/IcePhiLoweringImpl.h
@@ -37,10 +37,10 @@ void prelowerPhis32Bit(TargetT *Target, CfgNode *Node, Cfg *Func) {
continue;
Variable *Dest = Phi->getDest();
if (Dest->getType() == IceType_i64) {
- Variable *DestLo = llvm::cast<Variable>(Target->loOperand(Dest));
- Variable *DestHi = llvm::cast<Variable>(Target->hiOperand(Dest));
- InstPhi *PhiLo = InstPhi::create(Func, Phi->getSrcSize(), DestLo);
- InstPhi *PhiHi = InstPhi::create(Func, Phi->getSrcSize(), DestHi);
+ auto *DestLo = llvm::cast<Variable>(Target->loOperand(Dest));
+ auto *DestHi = llvm::cast<Variable>(Target->hiOperand(Dest));
+ auto *PhiLo = InstPhi::create(Func, Phi->getSrcSize(), DestLo);
+ auto *PhiHi = InstPhi::create(Func, Phi->getSrcSize(), DestHi);
for (SizeT I = 0; I < Phi->getSrcSize(); ++I) {
Operand *Src = Phi->getSrc(I);
CfgNode *Label = Phi->getLabel(I);
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698