[PATCH] D38677: [ConstantFold] Fix a crash when folding a GEP that has vector index

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 8 15:16:34 PDT 2017


majnemer added inline comments.


================
Comment at: lib/IR/ConstantFold.cpp:2213
     }
+    if (!isa<ConstantInt>(Idxs[i - 1]))
+      continue;
----------------
Shouldn't this be `!isa<Constant>` ?


Repository:
  rL LLVM

https://reviews.llvm.org/D38677





More information about the llvm-commits mailing list