[all-commits] [llvm/llvm-project] cbdc86: [clang-repl] Add call to 'InitializeAllAsmParsers'...
Andrew V. Teylu via All-commits
all-commits at lists.llvm.org
Thu Apr 4 03:10:45 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cbdc86e46c3824dda152db2bd0b9fdb3872ddf87
https://github.com/llvm/llvm-project/commit/cbdc86e46c3824dda152db2bd0b9fdb3872ddf87
Author: Andrew V. Teylu <andrewvaughanj at gmail.com>
Date: 2024-04-04 (Thu, 04 Apr 2024)
Changed paths:
A clang/test/Interpreter/inline-asm.cpp
M clang/tools/clang-repl/ClangRepl.cpp
Log Message:
-----------
[clang-repl] Add call to 'InitializeAllAsmParsers' (#86727)
This PR fixes the following issue when working with `clang-repl`:
```
fatal error: error in backend: Inline asm not supported by this streamer because we don't have an asm parser for this target
```
When working with the following input (named "unit.cpp"):
```cpp
__asm(".globl _ZSt21ios_base_library_initv");
int x;
```
and then in `clang-repl`:
```
#include "unit.cpp"
x = 10;
```
Signed-off-by: Andrew V. Teylu <andrew.teylu at vector.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list