From: Daniel Dunbar Date: Wed, 4 Mar 2009 21:14:57 +0000 (+0000) Subject: Driver: Return reference for Arg::getOption(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eec991a7041ce0142dc326c3ebe627119e3cae2e;p=clang Driver: Return reference for Arg::getOption(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66070 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Arg.h b/include/clang/Driver/Arg.h index 9c6fbf48f6..317af97ea5 100644 --- a/include/clang/Driver/Arg.h +++ b/include/clang/Driver/Arg.h @@ -54,7 +54,7 @@ namespace driver { virtual unsigned getNumValues() const = 0; virtual const char *getValue(const ArgList &Args, unsigned N) const = 0; - const Option *getOption() const { return Opt; } + const Option &getOption() const { return *Opt; } unsigned getIndex() const { return Index; } };