[llvm] Correct lie in contract (PR #82517)

Dave Abrahams via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 09:40:21 PST 2024


================
@@ -146,8 +146,8 @@ class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> {
     assert(hasInitializer() && "GV doesn't have initializer!");
     return static_cast<Constant*>(Op<0>().get());
   }
-  /// setInitializer - Sets the initializer for this global variable, removing
-  /// any existing initializer if InitVal==NULL.  If this GV has type T*, the
+  /// setInitializer - Sets the initializer for this global variable to 
----------------
dabrahams wrote:

```suggestion
  /// setInitializer - Sets the initializer for this global variable to
```

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


More information about the llvm-commits mailing list