[llvm] [SimplifyCFG] remove misleading arrow operator (PR #182435)

Justin Fargnoli via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 20 09:47:09 PST 2026


================
@@ -3550,7 +3550,7 @@ class SwitchInstProfUpdateWrapper {
 
 public:
   using CaseWeightOpt = std::optional<uint32_t>;
-  SwitchInst *operator->() { return &SI; }
+  SwitchInst *raw() { return &SI; }
----------------
justinfargnoli wrote:

It doesn't seem like there are any other uses of this, so should we remove it? 

https://github.com/llvm/llvm-project/pull/182435


More information about the llvm-commits mailing list