isCfi should query the mutated version
... similar to isFuzzer.
Test: verify libaudioflinger_timing does not have duplicate -flto flags
Bug: 289475610
Change-Id: Id7e5ec90b1b445f09f8b2ea164289450a77dfbb5
diff --git a/cc/cc.go b/cc/cc.go
index 6087970..e15985d 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -1367,7 +1367,7 @@
func (c *Module) isCfi() bool {
if sanitize := c.sanitize; sanitize != nil {
- return Bool(sanitize.Properties.Sanitize.Cfi)
+ return Bool(sanitize.Properties.SanitizeMutated.Cfi)
}
return false
}