diff options
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineInstrBundleIterator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstrBundleIterator.h b/llvm/include/llvm/CodeGen/MachineInstrBundleIterator.h index 45a9a188f90..c24fee8493e 100644 --- a/llvm/include/llvm/CodeGen/MachineInstrBundleIterator.h +++ b/llvm/include/llvm/CodeGen/MachineInstrBundleIterator.h @@ -50,8 +50,8 @@ public: Ty &operator*() const { return *MII; } Ty *operator->() const { return &operator*(); } - // FIXME: This conversion should be explicit. - operator Ty *() const { return MII.getNodePtrUnchecked(); } + // FIXME: This should be implemented as "return &operator*()" (or removed). + explicit operator Ty *() const { return MII.getNodePtrUnchecked(); } bool operator==(const MachineInstrBundleIterator &X) const { return MII == X.MII; |