[all-commits] [llvm/llvm-project] 5bb069: [NFC][CLANG] Fix nullptr dereference issue in SetV...

smanna12 via All-commits all-commits at lists.llvm.org
Wed May 31 10:18:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bb06924657332cf35c11840c4a14acb86536fd4
      https://github.com/llvm/llvm-project/commit/5bb06924657332cf35c11840c4a14acb86536fd4
  Author: Manna, Soumi <soumi.manna at intel.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M clang/lib/Interpreter/Interpreter.cpp

  Log Message:
  -----------
  [NFC][CLANG] Fix nullptr dereference issue in SetValueDataBasedOnQualType()

This patch uses castAs instead of getAs which will assert if the type doesn't match in SetValueDataBasedOnQualType(clang::Value &, unsigned long long).

Reviewed By: erichkeane

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




More information about the All-commits mailing list