diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-07-05 23:20:55 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-07-05 23:20:55 +0000 |
commit | e4055692f4b12ff914f304d6819f469a02f45c5c (patch) | |
tree | 39ec99729ae55eda0455cc88523a04bac76022b9 /clang/lib/AST/Comment.cpp | |
parent | c8a4e3857a647dd2f906810463a105c545c1db89 (diff) | |
download | bcm5719-llvm-e4055692f4b12ff914f304d6819f469a02f45c5c.tar.gz bcm5719-llvm-e4055692f4b12ff914f304d6819f469a02f45c5c.zip |
[comment parsing]: Removes an unsafe API whose
use can cause crash. No test is available. It is uncovered
by code browsing. // rdar://14348205
llvm-svn: 185732
Diffstat (limited to 'clang/lib/AST/Comment.cpp')
-rw-r--r-- | clang/lib/AST/Comment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index 058485e3fde..a16a023e95a 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/lib/AST/Comment.cpp @@ -295,12 +295,12 @@ StringRef ParamCommandComment::getParamName(const FullComment *FC) const { assert(isParamIndexValid()); if (isVarArgParam()) return "..."; - return FC->getThisDeclInfo()->ParamVars[getParamIndex()]->getName(); + return FC->getDeclInfo()->ParamVars[getParamIndex()]->getName(); } StringRef TParamCommandComment::getParamName(const FullComment *FC) const { assert(isPositionValid()); - const TemplateParameterList *TPL = FC->getThisDeclInfo()->TemplateParameters; + const TemplateParameterList *TPL = FC->getDeclInfo()->TemplateParameters; for (unsigned i = 0, e = getDepth(); i != e; ++i) { if (i == e-1) return TPL->getParam(getIndex(i))->getName(); |