[PATCH] D38546: [ConstantFolding] Avoid assert when folding ptrtoint of vectorized GEP

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 00:57:38 PDT 2017


bjope added inline comments.


================
Comment at: lib/IR/ConstantFold.cpp:640
+	if (DestTy->isVectorTy())
+	  return nullptr;
         GEPOperator *GEPO = cast<GEPOperator>(CE);
----------------
efriedma wrote:
> Looks like the whitespace got messed up here somehow?
Yes, thanks! I just found out that my emacs config ended up inserting tabs instead of spaces depending on how my local git repo was named - I did not know that - quite unexpected.  I'll correct the indents before I push this.


https://reviews.llvm.org/D38546





More information about the llvm-commits mailing list