We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae907e commit 15e0f6aCopy full SHA for 15e0f6a
clang/lib/CIR/CodeGen/CIRGenExpr.cpp
@@ -1178,7 +1178,8 @@ LValue CIRGenFunction::emitExtVectorElementExpr(const ExtVectorElementExpr *e) {
1178
// it.
1179
LValueBaseInfo baseInfo;
1180
Address ptr = emitPointerWithAlignment(e->getBase(), &baseInfo);
1181
- auto *clangPtrTy = e->getBase()->getType()->castAs<clang::PointerType>();
+ const auto *clangPtrTy =
1182
+ e->getBase()->getType()->castAs<clang::PointerType>();
1183
base = makeAddrLValue(ptr, clangPtrTy->getPointeeType(), baseInfo);
1184
base.getQuals().removeObjCGCAttr();
1185
} else if (e->getBase()->isGLValue()) {
0 commit comments