Skip to content

Commit d514764

Browse files
committed
force pointer type deduction
1 parent 5543e8d commit d514764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/DirectX/DXILPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class DXILPrepareModule : public ModulePass {
149149
// Omit bitcasts if the incoming value matches the instruction type.
150150
auto It = PointerTypes.find(Operand);
151151
if (It != PointerTypes.end()) {
152-
auto OpTy = cast<TypedPointerType>(It->second)->getElementType();
152+
auto *OpTy = cast<TypedPointerType>(It->second)->getElementType();
153153
if (OpTy == Ty)
154154
return nullptr;
155155
}

0 commit comments

Comments
 (0)