summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ir/type-updating.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ir/type-updating.cpp b/src/ir/type-updating.cpp
index 08c04e8d4..3eb29e43c 100644
--- a/src/ir/type-updating.cpp
+++ b/src/ir/type-updating.cpp
@@ -147,11 +147,9 @@ void GlobalTypeRewriter::mapTypes(const TypeMap& oldToNewTypes) {
if (type.isBasic()) {
return type;
}
- if (type.isFunction() || type.isData()) {
- auto iter = oldToNewTypes.find(type);
- if (iter != oldToNewTypes.end()) {
- return iter->second;
- }
+ auto iter = oldToNewTypes.find(type);
+ if (iter != oldToNewTypes.end()) {
+ return iter->second;
}
return type;
}