summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Path.inc
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-11 13:30:47 +0000
committerPavel Labath <labath@google.com>2018-06-11 13:30:47 +0000
commitb2c73c4cc0b1b5077029ac6f44e56ed2d9c0b47e (patch)
tree7548e26bf0fdcd01ec744f19d98f0c29f24427dd /llvm/lib/Support/Unix/Path.inc
parent08dae4bb3c5b4ec8eff111c1da8cbb980ba479a2 (diff)
downloadbcm5719-llvm-b2c73c4cc0b1b5077029ac6f44e56ed2d9c0b47e.tar.gz
bcm5719-llvm-b2c73c4cc0b1b5077029ac6f44e56ed2d9c0b47e.zip
Fix build errors on some configurations
It's been reported <http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20180611/559616.html> that template argument deduction for RetryAfterSignal fails if open is not prefixed with "::". This should help us build correctly on those platforms and explicitly specifying the namespace is more correct anyway. llvm-svn: 334403
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r--llvm/lib/Support/Unix/Path.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 9800f866309..b4001fb7481 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -767,7 +767,7 @@ std::error_code openFile(const Twine &Name, int &ResultFD,
SmallString<128> Storage;
StringRef P = Name.toNullTerminatedStringRef(Storage);
- if ((ResultFD = sys::RetryAfterSignal(-1, open, P.begin(), OpenFlags, Mode)) <
+ if ((ResultFD = sys::RetryAfterSignal(-1, ::open, P.begin(), OpenFlags, Mode)) <
0)
return std::error_code(errno, std::generic_category());
#ifndef O_CLOEXEC
OpenPOWER on IntegriCloud