P4 to Git Change 1132635 by smekhano@stas-rampitec-hsa on 2015/03/19 17:27:36

ECR #333753 - part of the changes to use llvm 3.6
	Testing: smoke, precheckin
	Reviewed by Brian Sumner

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#122 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/sync.cpp#1 add
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/sync.hpp#1 add
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#63 edit
This commit is contained in:
foreman
2015-03-19 20:50:35 -04:00
parent 3054034af3
commit 7168d24210
4 changed files with 42 additions and 6 deletions
@@ -115,8 +115,7 @@ using namespace llvm;
inline llvm::Module*
LoadFile(const std::string &Filename, LLVMContext& Context)
{
bool Exists;
if (sys::fs::exists(Filename, Exists) || !Exists) {
if (!sys::fs::exists(Filename)) {
// dbgs() << "Bitcode file: '" << Filename.c_str() << "' does not exist.\n";
return 0;
}
@@ -137,8 +136,7 @@ inline llvm::Module*
inline llvm::Module*
LoadLibrary(const std::string& libFile, LLVMContext& Context, MemoryBuffer** Buffer) {
bool Exists;
if (sys::fs::exists(libFile, Exists) || !Exists) {
if (!sys::fs::exists(libFile)) {
// dbgs() << "Bitcode file: '" << Filename.c_str() << "' does not exist.\n";
return 0;
}