mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
another fix to my previous commit:
* some picky <g> compilers get insulted by const-incorrectness * respect 80-char limit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5951368409
commit
9add869ee2
@ -91,7 +91,9 @@ Use *Use::initTags(Use * const Start, Use *Stop, ptrdiff_t Done) {
|
|||||||
--Stop;
|
--Stop;
|
||||||
Stop->Val = 0;
|
Stop->Val = 0;
|
||||||
if (!Count) {
|
if (!Count) {
|
||||||
Stop->Prev.setFromOpaqueValue(reinterpret_cast<Use**>(Done == 0 ? fullStopTag : stopTag));
|
Stop->Prev.setFromOpaqueValue(reinterpret_cast<Use**>(Done == 0
|
||||||
|
? fullStopTag
|
||||||
|
: stopTag));
|
||||||
++Done;
|
++Done;
|
||||||
Count = Done;
|
Count = Done;
|
||||||
} else {
|
} else {
|
||||||
@ -138,7 +140,8 @@ struct AugmentedUse : Use {
|
|||||||
|
|
||||||
User *Use::getUser() const {
|
User *Use::getUser() const {
|
||||||
const Use *End = getImpliedUser();
|
const Use *End = getImpliedUser();
|
||||||
PointerIntPair<User*, 1, Tag>& ref(static_cast<const AugmentedUse*>(End - 1)->ref);
|
const PointerIntPair<User*, 1, Tag>& ref(
|
||||||
|
static_cast<const AugmentedUse*>(End - 1)->ref);
|
||||||
User *She = ref.getPointer();
|
User *She = ref.getPointer();
|
||||||
return ref.getInt()
|
return ref.getInt()
|
||||||
? She
|
? She
|
||||||
|
Loading…
x
Reference in New Issue
Block a user