================
@@ -34,6 +42,14 @@ std::optional<int> Argument::getValAsInt() const {
   return KeyVal.getSExtValue();
 }
 
+std::optional<int> Argument::getValAsSignedInt() const {
----------------
jroelofs wrote:

I'm confused because `int` is signed.

Might also be nice if this were a template with specializations, so its use 
looks like: `Arg->get<int>();` / `Arg->get<unsigned>();`

https://github.com/llvm/llvm-project/pull/160549
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to