[all-commits] [llvm/llvm-project] c4de78: [SanitizerCoverage] Fix global type check with opa...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jun 29 11:32:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4de78e91c9341b5b1abf927da15e0956a484b79
      https://github.com/llvm/llvm-project/commit/c4de78e91c9341b5b1abf927da15e0956a484b79
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-06-29 (Tue, 29 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
    M llvm/test/Instrumentation/SanitizerCoverage/stack-depth-variable-declared-by-user.ll

  Log Message:
  -----------
  [SanitizerCoverage] Fix global type check with opaque pointers

The code was previously relying on the fact that an incorrectly
typed global would result in the insertion of a BitCast constant
expression. With opaque pointers, this is no longer the case, so
we should check the type explicitly.




More information about the All-commits mailing list