Merge "Add -instcombine-lower-dbg-declare to hwasan flags."

am: e643cd2b61

Change-Id: I341f9769410bc4f86135fa8e2f12ecba4e01f15d
This commit is contained in:
Evgenii Stepanov
2019-12-02 18:22:38 -08:00
committed by android-build-merger

View File

@@ -39,7 +39,16 @@ var (
hwasanCflags = []string{"-fno-omit-frame-pointer", "-Wno-frame-larger-than=", hwasanCflags = []string{"-fno-omit-frame-pointer", "-Wno-frame-larger-than=",
"-fsanitize-hwaddress-abi=platform", "-fsanitize-hwaddress-abi=platform",
"-fno-experimental-new-pass-manager"} "-fno-experimental-new-pass-manager",
// The following improves debug location information
// availability at the cost of its accuracy. It increases
// the likelihood of a stack variable's frame offset
// to be recorded in the debug info, which is important
// for the quality of hwasan reports. The downside is a
// higher number of "optimized out" stack variables.
// b/112437883.
"-mllvm", "-instcombine-lower-dbg-declare=0",
}
cfiCflags = []string{"-flto", "-fsanitize-cfi-cross-dso", cfiCflags = []string{"-flto", "-fsanitize-cfi-cross-dso",
"-fsanitize-blacklist=external/compiler-rt/lib/cfi/cfi_blacklist.txt"} "-fsanitize-blacklist=external/compiler-rt/lib/cfi/cfi_blacklist.txt"}