diff options
Diffstat (limited to 'llvm/docs/CommandLine.rst')
-rw-r--r-- | llvm/docs/CommandLine.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/docs/CommandLine.rst b/llvm/docs/CommandLine.rst index 9e04a57df3a..a660949881a 100644 --- a/llvm/docs/CommandLine.rst +++ b/llvm/docs/CommandLine.rst @@ -1289,8 +1289,7 @@ Here is an example of how the function could be used: int main(int argc, char **argv) { cl::OptionCategory AnotherCategory("Some options"); - StringMap<cl::Option*> Map; - cl::getRegisteredOptions(Map); + StringMap<cl::Option*> &Map = cl::getRegisteredOptions(); //Unhide useful option and put it in a different category assert(Map.count("print-all-options") > 0); |