13
13
#ifndef LLVM_ADT_POINTERINTPAIR_H
14
14
#define LLVM_ADT_POINTERINTPAIR_H
15
15
16
+ #include " llvm/Support/Compiler.h"
16
17
#include " llvm/Support/PointerLikeTypeTraits.h"
17
18
#include " llvm/Support/type_traits.h"
18
19
#include < cassert>
@@ -59,19 +60,19 @@ class PointerIntPair {
59
60
60
61
IntType getInt () const { return (IntType)Info::getInt (Value); }
61
62
62
- void setPointer (PointerTy PtrVal) {
63
+ void setPointer (PointerTy PtrVal) LLVM_LVALUE_FUNCTION {
63
64
Value = Info::updatePointer (Value, PtrVal);
64
65
}
65
66
66
- void setInt (IntType IntVal) {
67
+ void setInt (IntType IntVal) LLVM_LVALUE_FUNCTION {
67
68
Value = Info::updateInt (Value, static_cast <intptr_t >(IntVal));
68
69
}
69
70
70
- void initWithPointer (PointerTy PtrVal) {
71
+ void initWithPointer (PointerTy PtrVal) LLVM_LVALUE_FUNCTION {
71
72
Value = Info::updatePointer (0 , PtrVal);
72
73
}
73
74
74
- void setPointerAndInt (PointerTy PtrVal, IntType IntVal) {
75
+ void setPointerAndInt (PointerTy PtrVal, IntType IntVal) LLVM_LVALUE_FUNCTION {
75
76
Value = Info::updateInt (Info::updatePointer (0 , PtrVal),
76
77
static_cast <intptr_t >(IntVal));
77
78
}
@@ -89,7 +90,7 @@ class PointerIntPair {
89
90
90
91
void *getOpaqueValue () const { return reinterpret_cast <void *>(Value); }
91
92
92
- void setFromOpaqueValue (void *Val) {
93
+ void setFromOpaqueValue (void *Val) LLVM_LVALUE_FUNCTION {
93
94
Value = reinterpret_cast <intptr_t >(Val);
94
95
}
95
96
0 commit comments