testcase for PR3381.
[oota-llvm.git] / lib / Transforms / Scalar / InstructionCombining.cpp
index aed086709327298440cedb8568ad65ba30e47564..40289eaf6bfd42aeda835d68ecf35f67b88f510e 100644 (file)
@@ -11170,7 +11170,7 @@ static Instruction *InstCombineStoreToCast(InstCombiner &IC, StoreInst &SI) {
     
     while (1) {
       if (const StructType *STy = dyn_cast<StructType>(SrcPTy)) {
-        if (!STy->getNumElements()) /* Void is represented as {} */
+        if (!STy->getNumElements()) /* Struct can be empty {} */
           break;
         NewGEPIndices.push_back(Zero);
         SrcPTy = STy->getElementType(0);