[llvm] [MIR] Fix vreg flag vector memory leak (PR #112479)

Akshat Oke via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 01:14:58 PDT 2024


================
@@ -703,7 +703,7 @@ bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS,
         return error(FlagStringValue.SourceRange.Start,
                      Twine("use of undefined register flag '") +
                          FlagStringValue.Value + "'");
-      Info.Flags.push_back(FlagValue);
+      Info.Flags |= FlagValue;
----------------
optimisan wrote:

Added the check but can't be tested till relanding the WWM_REG flag patch.

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


More information about the llvm-commits mailing list