Skip to content

Commit a42f28c

Browse files
committed
No auto for GEPNoWrapFlags
1 parent 7cac0a6 commit a42f28c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ bool SeparateConstOffsetFromGEP::splitGEP(GetElementPtrInst *GEP) {
11031103
// TODO(jingyue): do some range analysis to keep as many inbounds as
11041104
// possible. GEPs with inbounds are more friendly to alias analysis.
11051105
// TODO(gep_nowrap): Preserve nuw at least.
1106-
auto NewGEPFlags = GEPNoWrapFlags::none();
1106+
GEPNoWrapFlags NewGEPFlags = GEPNoWrapFlags::none();
11071107
GEP->setNoWrapFlags(GEPNoWrapFlags::none());
11081108

11091109
// Lowers a GEP to either GEPs with a single index or arithmetic operations.

0 commit comments

Comments
 (0)