Skip to content

Commit 124a34d

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:a3937c46d0ea into amd-gfx:100685c57eaa
Local branch amd-gfx 100685c Merged main:cb5612c99b0b into amd-gfx:a9c8acf93e80 Remote branch main a3937c4 Fix typos in Debug.h (llvm#68761)
2 parents 100685c + a3937c4 commit 124a34d

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

clang/include/clang/AST/TypeLoc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class TypeLoc {
243243

244244
inline TypeSourceInfo::TypeSourceInfo(QualType ty, size_t DataSize) : Ty(ty) {
245245
// Init data attached to the object. See getTypeLoc.
246-
memset(this + 1, 0, DataSize);
246+
memset(static_cast<void *>(this + 1), 0, DataSize);
247247
}
248248

249249
/// Return the TypeLoc for a type source info.

flang/docs/GettingStarted.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ First, create the root directory and `cd` into it.
5353
```bash
5454
mkdir root
5555
cd root
56+
```
5657

5758
Now clone the source:
5859
```bash
@@ -233,6 +234,7 @@ cmake \
233234
-DCMAKE_CUDA_COMPILER=nvcc \
234235
-DCMAKE_CUDA_HOST_COMPILER=clang++ \
235236
../runtime/
237+
236238
make -j FortranRuntime
237239
```
238240

@@ -275,7 +277,7 @@ Normal `make -j check-flang` will work with such CMake configuration.
275277
##### OpenMP target offload build
276278
Only Clang compiler is currently supported.
277279

278-
```
280+
```bash
279281
cd llvm-project/flang
280282
rm -rf build_flang_runtime
281283
mkdir build_flang_runtime
@@ -287,6 +289,7 @@ cmake \
287289
-DCMAKE_CXX_COMPILER=clang++ \
288290
-DFLANG_OMP_DEVICE_ARCHITECTURES="all" \
289291
../runtime/
292+
290293
make -j FortranRuntime
291294
```
292295

@@ -338,6 +341,7 @@ and the GCC library and tools that were used to build clang++.
338341

339342
CXX should include the full path to clang++
340343
or clang++ should be found on your PATH.
344+
341345
```bash
342346
export CXX=clang++
343347
```

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 478236
19+
#define LLVM_MAIN_REVISION 478240
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/include/llvm/Support/Debug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void setCurrentDebugType(const char *Type);
5353
void setCurrentDebugTypes(const char **Types, unsigned Count);
5454

5555
/// DEBUG_WITH_TYPE macro - This macro should be used by passes to emit debug
56-
/// information. In the '-debug' option is specified on the commandline, and if
56+
/// information. If the '-debug' option is specified on the commandline, and if
5757
/// this is a debug build, then the code specified as the option to the macro
5858
/// will be executed. Otherwise it will not be. Example:
5959
///
@@ -92,7 +92,7 @@ extern bool EnableDebugBuffering;
9292
raw_ostream &dbgs();
9393

9494
// DEBUG macro - This macro should be used by passes to emit debug information.
95-
// In the '-debug' option is specified on the commandline, and if this is a
95+
// If the '-debug' option is specified on the commandline, and if this is a
9696
// debug build, then the code specified as the option to the macro will be
9797
// executed. Otherwise it will not be. Example:
9898
//

mlir/lib/ExecutionEngine/CRunnerUtils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
#include "mlir/ExecutionEngine/Msan.h"
1717

1818
#ifndef _WIN32
19-
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
19+
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
20+
defined(__DragonFly__)
2021
#include <cstdlib>
2122
#else
2223
#include <alloca.h>

0 commit comments

Comments
 (0)