Skip to content

Commit 4145544

Browse files
authored
Merge branch 'main' into users/svkeerthy/10-21-mir2vec-tests-fix
2 parents eaf1906 + d4713ec commit 4145544

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

flang/docs/FortranLLVMTestSuite.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,3 @@ instructions described [above](#running-the-llvm-test-suite-with-fortran).
7373
There are additional configure-time options that can be used with the gfortran
7474
tests. More details about those options and their purpose can be found in
7575
[`Fortran/gfortran/README.md`](https://github.com/llvm/llvm-test-suite/tree/main/Fortran/gfortran/README.md).
76-
77-
These tests are Free Software and are shared under the terms of the GNU General Public License (GPL). For more details, please see the accompanying [`LICENSE`](https://github.com/llvm/llvm-test-suite/tree/main/Fortran/gfortran/LICENSE.txt) file.

lldb/test/API/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ if(CMAKE_HOST_APPLE)
140140
endif()
141141

142142
if(WIN32 AND CMAKE_BUILD_TYPE STREQUAL Debug)
143-
set(LLDB_PYTHON_API_TEST_EXECUTABLE "${Python3_EXECUTABLE_DEBUG}")
143+
if(${CMAKE_VERSION} VERSION_LESS "3.30")
144+
message(WARNING "CMake version is inferior to 3.30. Some lldb tests will fail.")
145+
set(LLDB_PYTHON_API_TEST_EXECUTABLE "${Python3_EXECUTABLE}")
146+
else()
147+
set(LLDB_PYTHON_API_TEST_EXECUTABLE "${Python3_EXECUTABLE_DEBUG}")
148+
endif()
144149
else()
145150
set(LLDB_PYTHON_API_TEST_EXECUTABLE "${Python3_EXECUTABLE}")
146151
endif()

mlir/lib/IR/Diagnostics.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,8 @@ struct SourceMgrDiagnosticHandlerImpl {
378378
}
379379

380380
// Otherwise, try to load the source file.
381-
auto bufferOrErr = llvm::MemoryBuffer::getFile(filename);
382-
if (!bufferOrErr)
383-
return 0;
384-
unsigned id = mgr.AddNewSourceBuffer(std::move(*bufferOrErr), SMLoc());
381+
std::string ignored;
382+
unsigned id = mgr.AddIncludeFile(std::string(filename), SMLoc(), ignored);
385383
filenameToBufId[filename] = id;
386384
return id;
387385
}

0 commit comments

Comments
 (0)