summaryrefslogtreecommitdiff
path: root/src/passes/PostAssemblyScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/PostAssemblyScript.cpp')
-rw-r--r--src/passes/PostAssemblyScript.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/passes/PostAssemblyScript.cpp b/src/passes/PostAssemblyScript.cpp
index 4e41c8f08..eeb077ce9 100644
--- a/src/passes/PostAssemblyScript.cpp
+++ b/src/passes/PostAssemblyScript.cpp
@@ -88,8 +88,8 @@ struct AliasGraph : LocalGraph {
// consider a full retain pattern, which must also set a local.
static bool isRetainCall(Call* expr) {
// __retain(...)
- return expr->target == RETAIN && expr->type == i32 &&
- expr->operands.size() == 1 && expr->operands[0]->type == i32;
+ return expr->target == RETAIN && expr->type == Type::i32 &&
+ expr->operands.size() == 1 && expr->operands[0]->type == Type::i32;
}
// Tests if a local.set is considered to be a full retain pattern.
@@ -117,8 +117,8 @@ static bool isRetainLocation(Expression** expr) {
// consider a full release pattern, which must also get a local.
static bool isReleaseCall(Call* expr) {
// __release(...)
- return expr->target == RELEASE && expr->type == none &&
- expr->operands.size() == 1 && expr->operands[0]->type == i32;
+ return expr->target == RELEASE && expr->type == Type::none &&
+ expr->operands.size() == 1 && expr->operands[0]->type == Type::i32;
}
// Tests if the given location is that of a full release pattern. Note that
@@ -138,7 +138,7 @@ static bool isReleaseLocation(Expression** expr) {
// Tests if the given call calls any allocation function.
static bool isAllocCall(Call* expr) {
return (expr->target == ALLOC || expr->target == ALLOCARRAY) &&
- expr->type == i32;
+ expr->type == Type::i32;
}
// A pass that eliminates redundant retain and release calls.