Fixes llvm warning

Fixes a warning introduced in #2422 

/cc @sendhil