summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/CommandLine.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/Support/CommandLine.h')
-rw-r--r--llvm/include/Support/CommandLine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/Support/CommandLine.h b/llvm/include/Support/CommandLine.h
index 0d1d14813cd..b7bd62a3807 100644
--- a/llvm/include/Support/CommandLine.h
+++ b/llvm/include/Support/CommandLine.h
@@ -711,6 +711,9 @@ struct opt_storage<DataType, false, false> {
void setValue(const T &V) { Value = V; }
DataType &getValue() { return Value; }
DataType getValue() const { return Value; }
+
+ // If the datatype is a pointer, support -> on it.
+ DataType operator->() const { return Value; }
};
OpenPOWER on IntegriCloud