summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-16 19:35:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-16 19:35:48 +0000
commit70c7eda21fd736f29ed4132cdcc656228d6ea952 (patch)
tree9972b6f8ecaf4b66fc7e2a8345e27d147db7d02d /lib/CodeGen/TargetInfo.cpp
parent2cfcfd2aa5481b00614edcdf8399c6ffa3937bba (diff)
downloadclang-70c7eda21fd736f29ed4132cdcc656228d6ea952.tar.gz
clang-70c7eda21fd736f29ed4132cdcc656228d6ea952.tar.bz2
clang-70c7eda21fd736f29ed4132cdcc656228d6ea952.tar.xz
Update for llvm api change.
Now that llvm cannot represent alias cycles, we have to diagnose erros just before trying to close the cycle. This degrades the errors a bit. The real solution is what it was before: if we want to provide good errors for these cases, we have to be able to find a clang level decl given a mangled name and produce the error from Sema. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r--lib/CodeGen/TargetInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index 0ed23ed371..9e5849328b 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/lib/CodeGen/TargetInfo.cpp
@@ -5213,7 +5213,7 @@ void MSP430TargetCodeGenInfo::SetTargetAttributes(const Decl *D,
unsigned Num = attr->getNumber() / 2;
new llvm::GlobalAlias(GV->getType()->getElementType(),
llvm::Function::ExternalLinkage,
- "__isr_" + Twine(Num), GV, &M.getModule());
+ "__isr_" + Twine(Num), F, &M.getModule());
}
}
}