[PATCH] D33129: [SCEVExpander] Try harder to avoid introducing inttoptr

Gor Nishanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 26 22:23:44 PDT 2017


GorNishanov added inline comments.


================
Comment at: llvm/trunk/unittests/Analysis/ScalarEvolutionTest.cpp:917
+  Builder.SetInsertPoint(Post);
+  Value *GepBase = Builder.CreateGEP(Arg, {ConstantInt::get(T_int64, 1)});
+  Instruction *Ret = Builder.CreateRetVoid();
----------------
Looks like a typo:

lvm/unittests/Analysis/ScalarEvolutionTest.cpp:917:43: error: braces around scalar initializer [-Werror,-Wbraced-scalar-init]
  Value *GepBase = Builder.CreateGEP(Arg, {ConstantInt::get(T_int64, 1)});



Repository:
  rL LLVM

https://reviews.llvm.org/D33129





More information about the llvm-commits mailing list