summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-query/tool/ClangQuery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-query/tool/ClangQuery.cpp b/clang-query/tool/ClangQuery.cpp
index e4abcbbb..990b82b3 100644
--- a/clang-query/tool/ClangQuery.cpp
+++ b/clang-query/tool/ClangQuery.cpp
@@ -80,7 +80,7 @@ int main(int argc, const char **argv) {
for (cl::list<std::string>::iterator I = Commands.begin(),
E = Commands.end();
I != E; ++I) {
- QueryRef Q = QueryParser::parse(I->c_str(), QS);
+ QueryRef Q = QueryParser::parse(*I, QS);
if (!Q->run(llvm::outs(), QS))
return 1;
}
@@ -97,7 +97,7 @@ int main(int argc, const char **argv) {
std::string Line;
std::getline(Input, Line);
- QueryRef Q = QueryParser::parse(Line.c_str(), QS);
+ QueryRef Q = QueryParser::parse(Line, QS);
if (!Q->run(llvm::outs(), QS))
return 1;
}