aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-04 21:14:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-04 21:14:57 +0000
commiteec991a7041ce0142dc326c3ebe627119e3cae2e (patch)
tree949a4785e59399a4187c23bd403036032598c2ec
parent02ca6ea41855feaa41cfbe2533ec68fdf35c7e53 (diff)
Driver: Return reference for Arg::getOption().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66070 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Driver/Arg.h2
1 files changed, 1 insertions, 1 deletions
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; }
};