[PATCH] D40095: Fix pointer EVT in SelectionDAGBuilder::visitAlloca

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 12:54:51 PST 2017


rampitec added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:3526
   Flags.setNoUnsignedWrap(true);
-  AllocSize = DAG.getNode(ISD::ADD, dl,
-                          AllocSize.getValueType(), AllocSize,
-                          DAG.getIntPtrConstant(StackAlign - 1, dl), Flags);
+  AllocSize = DAG.getNode(ISD::ADD, dl, AllocSize.getValueType(), AllocSize,
+                          DAG.getConstant(StackAlign - 1, dl, IntPtr), Flags);
----------------
Should not DAG.getIntPtrConstant() take an address space and pass it to the TLI.getPointerTy()?


https://reviews.llvm.org/D40095





More information about the llvm-commits mailing list