[all-commits] [llvm/llvm-project] f70648: Fix for crash in __builtin_return_address in templ...

Sunil Srivastava via All-commits all-commits at lists.llvm.org
Tue Jan 12 12:37:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f706486eaf07020b11f2088274c757e4070fe6d1
      https://github.com/llvm/llvm-project/commit/f706486eaf07020b11f2088274c757e4070fe6d1
  Author: Sunil Srivastava <sunil.srivastava at sony.com>
  Date:   2021-01-12 (Tue, 12 Jan 2021)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/Sema/builtin-returnaddress.c

  Log Message:
  -----------
  Fix for crash in __builtin_return_address in template context.

The check for argument value needs to be guarded by !isValueDependent().

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




More information about the All-commits mailing list