diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-03-01 22:50:47 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-03-01 22:50:47 +0000 |
commit | 51477bd0d0ede9879a25138d79481e9c53f9836c (patch) | |
tree | 4c0d66fdbaecfbec029919e2af6c327af3c52485 /clang/lib/CodeGen/CGCall.cpp | |
parent | 1276e3203eeea7a71d3b0a8292a1646b83913351 (diff) | |
download | bcm5719-llvm-51477bd0d0ede9879a25138d79481e9c53f9836c.tar.gz bcm5719-llvm-51477bd0d0ede9879a25138d79481e9c53f9836c.zip |
Since getDriver().getInstalledDir() returns a const char *, don't try to
compare it with getDriver().Dir.c_str(), since that is a pointer
comparison, not a "are these strings equal" comparison.
Instead, just compare with getDriver().Dir directly, so both sides will
get promoted to std::string, and the regular std::string comparison
operator applies.
Patch by Dimitry Andric!
llvm-svn: 126791
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
0 files changed, 0 insertions, 0 deletions