[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 1b18e96882590825075b8f8e5094fdcb5225d349 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH] Fix cuda flag with clang-repl --- clang/include/clang/Interpre

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 82a2be2dd0780bd3d57f4a22d61a4b0752696934 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/5] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: cc @AaronBallman @vgvassilev This fixes this discussion y'all had https://github.com/llvm/llvm-project/pull/107737#discussion_r1806913203 Unfortunately I am on an Apple m1 so I can just justify seeing this on my side ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang/include/clang/Interpreter/Interpreter.h clan

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Anutosh Bhat (anutosh491) Changes `clang-repl --cuda` was previously crashing with a segmentation fault, instead of reporting a clean error ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --cuda #0 0x000111da4fbc llvm:

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/136404 `clang-repl --cuda` was previously crashing with a segmentation fault, instead of reporting a clean error ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --cuda #0 0x000111da4fbc llvm::sys