llvm / llvm/llvm-project

`intrin.h` defines `_ReturnAddress` for x86 and x86-64, but not ARM64

Open
#178,288 1 comment 0 reactions 0 assignees View on GitHub
clang:frontend extension:microsoft
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Basically, I believe that this should compile:
```cpp
#include
void x() {
_ReturnAddress();
}
```

Currently, it compiles for x86 and [AMD64](https://c.godbolt.org/z/vjTv18zW1), but not [x86-64](https://c.godbolt.org/z/MzvTnYKfv).

Microsoft lists it under [ARM64 intrinsics](https://learn.microsoft.com/en-us/cpp/intrinsics/arm64-intrinsics?view=msvc-170).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.