llvm patched for thread local storage support (by Lim) 57/147957/1
authorchunseoklee <chunseok.lee@samsung.com>
Mon, 11 Jul 2016 02:35:18 +0000 (11:35 +0900)
committerCHUNSEOK LEE <chunseok.lee@samsung.com>
Wed, 6 Sep 2017 06:22:58 +0000 (15:22 +0900)
Change-Id: I227e998f2edf1bdc169a5a71c075065909a49bd6

lib/Target/ARM/ARMConstantPoolValue.cpp

index c9849b2..880e230 100644 (file)
@@ -74,9 +74,9 @@ bool
 ARMConstantPoolValue::hasSameValue(ARMConstantPoolValue *ACPV) {
   if (ACPV->Kind == Kind &&
       ACPV->PCAdjust == PCAdjust &&
-      ACPV->Modifier == Modifier) {
-    if (ACPV->LabelId == LabelId)
-      return true;
+      ACPV->Modifier == Modifier &&
+      ACPV->LabelId == LabelId &&
+      ACPV->AddCurrentAddress == AddCurrentAddress) {
     // Two PC relative constpool entries containing the same GV address or
     // external symbols. FIXME: What about blockaddress?
     if (Kind == ARMCP::CPValue || Kind == ARMCP::CPExtSymbol)