aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorjeffreytan81 <jeffreytan@meta.com>2024-10-24 17:13:32 -0700
committerGitHub <noreply@github.com>2024-10-24 17:13:32 -0700
commit25909b811a7ddc983d042b15cb54ec271a673d63 (patch)
treede72515c1d147bcd47b095d52af372036c1f501c /flang/lib/Frontend/CompilerInvocation.cpp
parent455f71d28541c3dcb628c4c6f7b53d6eae0f1829 (diff)
downloadllvm-25909b811a7ddc983d042b15cb54ec271a673d63.zip
llvm-25909b811a7ddc983d042b15cb54ec271a673d63.tar.gz
llvm-25909b811a7ddc983d042b15cb54ec271a673d63.tar.bz2
Fix pointer to reference type (#113596)
We have got customer reporting "v &obj" and "p &obj" reporting different results. Turns out it only happens for obj that is itself a reference type which "v &obj" reports the address of the reference itself instead of the target object the reference points to. This diverged from C++ semantics. This PR fixes this issue by returning the address of the dereferenced object if it is reference type. A new test is added which fails before. Co-authored-by: jeffreytan81 <jeffreytan@fb.com>
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions