mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Eliminated the Unique class in favor of NonCopyable and NonCopyableV
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -120,7 +120,7 @@ public:
|
||||
|
||||
|
||||
unsigned int getStorageSize(const TargetMachine& tmi) const {
|
||||
if (layoutCache->targetInfo && *layoutCache->targetInfo != tmi) {
|
||||
if (layoutCache->targetInfo && layoutCache->targetInfo != &tmi) {
|
||||
// target machine has changed (hey it could happen). discard cached info.
|
||||
ResetCachedInfo();
|
||||
layoutCache->targetInfo = &tmi;
|
||||
@@ -134,7 +134,7 @@ public:
|
||||
}
|
||||
unsigned int getElementOffset(int i, const TargetMachine& tmi) const {
|
||||
// target machine has changed (hey it could happen). discard cached info.
|
||||
if (layoutCache->targetInfo && *layoutCache->targetInfo != tmi)
|
||||
if (layoutCache->targetInfo && layoutCache->targetInfo != &tmi)
|
||||
ResetCachedInfo();
|
||||
|
||||
if (layoutCache->memberOffsets[i] < 0) {
|
||||
|
Reference in New Issue
Block a user