File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4897,7 +4897,7 @@ inline Value *getPointerOperand(Value *V) {
4897
4897
}
4898
4898
4899
4899
// / A helper function that returns the alignment of load or store instruction.
4900
- inline Align getLoadStoreAlignment (Value *I) {
4900
+ inline Align getLoadStoreAlignment (const Value *I) {
4901
4901
assert ((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
4902
4902
" Expected Load or Store instruction" );
4903
4903
if (auto *LI = dyn_cast<LoadInst>(I))
@@ -4907,7 +4907,7 @@ inline Align getLoadStoreAlignment(Value *I) {
4907
4907
4908
4908
// / A helper function that returns the address space of the pointer operand of
4909
4909
// / load or store instruction.
4910
- inline unsigned getLoadStoreAddressSpace (Value *I) {
4910
+ inline unsigned getLoadStoreAddressSpace (const Value *I) {
4911
4911
assert ((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
4912
4912
" Expected Load or Store instruction" );
4913
4913
if (auto *LI = dyn_cast<LoadInst>(I))
@@ -4916,7 +4916,7 @@ inline unsigned getLoadStoreAddressSpace(Value *I) {
4916
4916
}
4917
4917
4918
4918
// / A helper function that returns the type of a load or store instruction.
4919
- inline Type *getLoadStoreType (Value *I) {
4919
+ inline Type *getLoadStoreType (const Value *I) {
4920
4920
assert ((isa<LoadInst>(I) || isa<StoreInst>(I)) &&
4921
4921
" Expected Load or Store instruction" );
4922
4922
if (auto *LI = dyn_cast<LoadInst>(I))
You can’t perform that action at this time.
0 commit comments