summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2018-12-18 11:40:00 -0800
committerGitHub <noreply@github.com>2018-12-18 11:40:00 -0800
commitaf0ff220fd5bd4aa05b2472f3d6e98e08175f517 (patch)
treefd2de5366bb45cd20e7a2343a49639b335437224 /src/passes/Print.cpp
parent6974dbb4a6184c88792557fb5dfb59265a6c4a56 (diff)
downloadbinaryen-af0ff220fd5bd4aa05b2472f3d6e98e08175f517.tar.gz
binaryen-af0ff220fd5bd4aa05b2472f3d6e98e08175f517.tar.bz2
binaryen-af0ff220fd5bd4aa05b2472f3d6e98e08175f517.zip
Rename `idx` to `index` in SIMD code for consistency (#1836)
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 64dd0deae..2cfa5092c 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -246,7 +246,7 @@ struct PrintExpressionContents : public Visitor<PrintExpressionContents> {
case ExtractLaneVecF32x4: o << "f32x4.extract_lane"; break;
case ExtractLaneVecF64x2: o << "f64x2.extract_lane"; break;
}
- o << " " << int(curr->idx);
+ o << " " << int(curr->index);
}
void visitSIMDReplace(SIMDReplace* curr) {
prepareColor(o);
@@ -258,7 +258,7 @@ struct PrintExpressionContents : public Visitor<PrintExpressionContents> {
case ReplaceLaneVecF32x4: o << "f32x4.replace_lane"; break;
case ReplaceLaneVecF64x2: o << "f64x2.replace_lane"; break;
}
- o << " " << int(curr->idx);
+ o << " " << int(curr->index);
}
void visitSIMDShuffle(SIMDShuffle* curr) {
prepareColor(o);