[all-commits] [llvm/llvm-project] 6f89cb: LowerDbgDeclare: look through bitcasts.

Evgenii Stepanov via All-commits all-commits at lists.llvm.org
Thu Dec 5 11:24:43 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f89cbc429f8459321733f2ae357f508a62b0df6
      https://github.com/llvm/llvm-project/commit/6f89cbc429f8459321733f2ae357f508a62b0df6
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2019-12-05 (Thu, 05 Dec 2019)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    A llvm/test/Transforms/Util/dbg-call-bitcast.ll

  Log Message:
  -----------
  LowerDbgDeclare: look through bitcasts.

Summary:
Emit a value debug intrinsic (with OP_deref) when an alloca address is
passed to a function call after going through a bitcast.

This generates an FP or SP-relative location for the local variable in
the following case:
  int x;
  use((void *)&x;

Reviewers: aprantl, vsk, pcc

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70752




More information about the All-commits mailing list