You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Fix ICE when -g and -ffile-prefix-map flags are set (#8459)
Set the source file name when footer is present and option
fmacro-prefix-map is used when generating debug information.
This patch is to fix a crash in the compiler when generating debug
information with the option -ffile-prefix-map.
Example:
$ pwd
/tmp/tmp.jocQk9WVa0
$
$ cat builtin.cpp
void a(__builtin_va_list);
using ::a;
$
$ clang -c -g -fsycl /tmp/tmp.jocQk9WVa0/builtin.cpp
$
$ clang -g -fsycl -ffile-prefix-map=/tmp/=
/tmp/tmp.jocQk9WVa0/builtin.cpp
Expected<T> must be checked before access or destruction.
Unchecked Expected<T> contained error:
No such file or directoryPLEASE submit a bug report to
https://github.com/llvm/llvm-project/issues/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments:
…………………/tmp/tmp.jocQk9WVa0/builtin.cpp
1. <eof> parser at end of file
2. /tmp/tmp.jocQk9WVa0/builtin.cpp:2:9: LLVM IR generation of
declaration 'a
https://github.com/intel/llvm/blob/sycl/clang/lib/CodeGen/CGDebugInfo.cpp#L397
is returning a error because the FileName is wrong.
0 commit comments