isCfi should query the mutated version

... similar to isFuzzer.

Test: verify libaudioflinger_timing does not have duplicate -flto flags
Bug: 289475610
Change-Id: Id7e5ec90b1b445f09f8b2ea164289450a77dfbb5
This commit is contained in:
Yi Kong
2023-07-18 16:40:36 +09:00
parent 26a54045be
commit ddffe72b92

View File

@@ -1367,7 +1367,7 @@ func (c *Module) isPgoCompile() bool {
func (c *Module) isCfi() bool { func (c *Module) isCfi() bool {
if sanitize := c.sanitize; sanitize != nil { if sanitize := c.sanitize; sanitize != nil {
return Bool(sanitize.Properties.Sanitize.Cfi) return Bool(sanitize.Properties.SanitizeMutated.Cfi)
} }
return false return false
} }