Skip to content

Commit

Permalink
Fixed accidently removed scope tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Jul 28, 2021
1 parent a290195 commit 9398d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tir/transforms/lower_device_storage_access_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class StorageAccessInfoLower : public StmtExprMutator {
public:
Stmt VisitStmt_(const AllocateNode* op) final {
auto scope = StorageScope::Create(GetPtrStorageScope(op->buffer_var));
if (scope.tag.length() != 0) {
if (scope.tag.length() != 0 && scope.tag != ".dyn") {
auto info = GetMemoryInfo(GetPtrStorageScope(op->buffer_var));
ICHECK(info.defined()) << "Cannot find memory info of " << scope.to_string();
ICHECK(storage_info_.find(op->buffer_var.get()) == storage_info_.end())
Expand Down

0 comments on commit 9398d96

Please sign in to comment.