aboutsummaryrefslogtreecommitdiffstats
path: root/cc/sanitize.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/sanitize.go')
-rw-r--r--cc/sanitize.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 881a5a01..de970352 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -256,9 +256,8 @@ func (sanitize *sanitize) begin(ctx BaseModuleContext) {
s.Diag.Cfi = nil
}
- // Also disable CFI for VNDK variants of components in the
- // include paths
- if ctx.isVndk() && ctx.useVndk() && ctx.Config().CFIEnabledForPath(ctx.ModuleDir()) {
+ // Also disable CFI for VNDK variants of components
+ if ctx.isVndk() && ctx.useVndk() {
s.Cfi = nil
s.Diag.Cfi = nil
}