summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/Driver/Arg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Arg.h b/clang/include/clang/Driver/Arg.h
index 9c6fbf48f65..317af97ea54 100644
--- a/clang/include/clang/Driver/Arg.h
+++ b/clang/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; }
};
OpenPOWER on IntegriCloud