summaryrefslogtreecommitdiff
path: root/src/passes/AlignmentLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/AlignmentLowering.cpp')
-rw-r--r--src/passes/AlignmentLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/AlignmentLowering.cpp b/src/passes/AlignmentLowering.cpp
index 26815b389..b12e49c4f 100644
--- a/src/passes/AlignmentLowering.cpp
+++ b/src/passes/AlignmentLowering.cpp
@@ -232,7 +232,7 @@ struct AlignmentLowering : public WalkerPass<PostWalker<AlignmentLowering>> {
return;
}
Builder builder(*getModule());
- auto type = curr->type.getSingle();
+ auto type = curr->type.getBasic();
Expression* replacement;
switch (type) {
default:
@@ -303,7 +303,7 @@ struct AlignmentLowering : public WalkerPass<PostWalker<AlignmentLowering>> {
// the operation is unaligned.
return;
}
- auto type = curr->value->type.getSingle();
+ auto type = curr->value->type.getBasic();
Expression* replacement;
switch (type) {
default: