[PATCH] D16418: [opaque pointer types] [NFC] Add an explicit type argument to ConstantFoldLoadFromConstPtr.
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 21 16:30:51 PST 2016
dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.
Looks OK
================
Comment at: lib/Analysis/ConstantFolding.cpp:488
@@ -485,3 +487,3 @@
return nullptr;
- Type *DestTy = DestPtrTy->getElementType();
+ Type *SrcTy = SrcPtrTy->getPointerElementType();
----------------
Presumably this could be getElementType (since SrcPtrTy is already a PointerType) - but in either case this is a stop-gap and will eventually be removed/migrated?
http://reviews.llvm.org/D16418
More information about the llvm-commits
mailing list