majnemer added a subscriber: majnemer. ================ Comment at: lib/IR/IRBuilder.cpp:209 @@ +208,3 @@ + Value *CPtr = Ptr; + if (StructType* STyp = + dyn_cast<StructType>(CPtr->getType()->getPointerElementType())) { ---------------- `auto *STy` http://reviews.llvm.org/D9378