diff --git a/clang/lib/AST/Interp/Program.h b/clang/lib/AST/Interp/Program.h index 17342680102cf..364a63dbf477a 100644 --- a/clang/lib/AST/Interp/Program.h +++ b/clang/lib/AST/Interp/Program.h @@ -86,7 +86,7 @@ class Program final { std::optional getOrCreateDummy(const ValueDecl *VD); /// Creates a global and returns its index. - std::optional createGlobal(const ValueDecl *VD, const Expr *E); + std::optional createGlobal(const ValueDecl *VD, const Expr *Init); /// Creates a global from a lifetime-extended temporary. std::optional createGlobal(const Expr *E);