summaryrefslogtreecommitdiff
path: root/src/passes/ConstantFieldPropagation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/ConstantFieldPropagation.cpp')
-rw-r--r--src/passes/ConstantFieldPropagation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/passes/ConstantFieldPropagation.cpp b/src/passes/ConstantFieldPropagation.cpp
index 2fdd8333c..f6bad04b6 100644
--- a/src/passes/ConstantFieldPropagation.cpp
+++ b/src/passes/ConstantFieldPropagation.cpp
@@ -214,7 +214,7 @@ private:
struct PCVScanner : public Scanner<PossibleConstantValues, PCVScanner> {
Pass* create() override {
- return new PCVScanner(functionNewInfos, functionSetInfos);
+ return new PCVScanner(functionNewInfos, functionSetGetInfos);
}
PCVScanner(FunctionStructValuesMap<PossibleConstantValues>& functionNewInfos,
@@ -261,6 +261,10 @@ struct PCVScanner : public Scanner<PossibleConstantValues, PCVScanner> {
// analysis (but this is already entering the realm of diminishing
// returns).
}
+
+ void noteRead(HeapType type, Index index, PossibleConstantValues& info) {
+ // Reads do not interest us.
+ }
};
struct ConstantFieldPropagation : public Pass {