Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Thé authored and Richard Trembecký committed May 1, 2016
1 parent ef5cdf4 commit 31ed529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Core/StatsTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,14 @@ StatsTracker::StatsTracker(Executor &_executor, std::string _objectFilename,
if (!sys::path::is_absolute(objectFilename)) {
SmallString<128> current(objectFilename);
if(sys::fs::make_absolute(current)) {
bool exists = false;
#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 6)
Twine current_twine(current.str()); // requires a twine for this. so silly
if (!sys::fs::exists(current_twine)) {
#elif LLVM_VERSION_CODE == LLVM_VERSION(3, 5)
bool exists = false;
if (!sys::fs::exists(current.str(), exists)) {
#elif LLVM_VERSION_CODE < LLVM_VERSION(3, 5)
bool exists = false;
error_code ec = sys::fs::exists(current.str(), exists);
if (ec == errc::success && exists) {
#endif
Expand Down

0 comments on commit 31ed529

Please sign in to comment.