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

Unified Diff: src/IceTargetLowering.cpp

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 5 months 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
Index: src/IceTargetLowering.cpp
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
index 671bab029d0d30871a55e94f9a27052f27f36a9d..9bac6dc509aa49bdb96fb8e016a2b67bd7c965b5 100644
--- a/src/IceTargetLowering.cpp
+++ b/src/IceTargetLowering.cpp
@@ -80,8 +80,8 @@ TargetLowering *TargetLowering::createLowering(TargetArch Target, Cfg *Func) {
return nullptr;
}
-TargetLowering::TargetLowering(Cfg *Func)
- : Func(Func), Ctx(Func->getContext()), Context() {}
+TargetLowering::TargetLowering(Cfg *MyFunc)
+ : Func(MyFunc), Ctx(Func->getContext()), Context() {}
std::unique_ptr<Assembler> TargetLowering::createAssembler(TargetArch Target,
Cfg *Func) {
@@ -110,7 +110,7 @@ void TargetLowering::doNopInsertion() {
I->isDeleted();
if (!ShouldSkip) {
int Probability = Ctx->getFlags().getNopProbabilityAsPercentage();
- for (int I = 0; I < Ctx->getFlags().getMaxNopsPerInstruction(); ++I) {
+ for (int i = 0; i < Ctx->getFlags().getMaxNopsPerInstruction(); ++i) {
randomlyInsertNop(Probability / 100.0);
}
}
« src/IceInst.h ('K') | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698