aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen/MachineCSE.cpp')
-rw-r--r--backend/lib/CodeGen/MachineCSE.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/backend/lib/CodeGen/MachineCSE.cpp b/backend/lib/CodeGen/MachineCSE.cpp
index a144403..47bba04 100644
--- a/backend/lib/CodeGen/MachineCSE.cpp
+++ b/backend/lib/CodeGen/MachineCSE.cpp
@@ -161,8 +161,11 @@ template <typename ValueT>
if (Reg == nullptr || !Reg->isVirtual())
continue;
auto Info = Registers.virtualRegisterInfo(*Reg);
- if (Info && Info->get().Type && Info->get().Type->isFloat())
- return true;
+ if (Info) {
+ const auto &Type = Info->get().Type;
+ if (Type && Type->isFloat())
+ return true;
+ }
}
return false;
}