diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-15 08:15:00 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-15 08:15:00 +0000 |
commit | ba7c38c36adb65d66c129270b2813fd2167488ed (patch) | |
tree | 82995351f44cc9d463dfde26aa790d4ba1359401 /lib/VMCore | |
parent | 6ccb5ef1b504e71b63219437f5bcf4856207949b (diff) |
Allow unnamed_addr on declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index ee62a29eee..58ec6fe88d 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -469,8 +469,6 @@ void Verifier::visitGlobalVariable(GlobalVariable &GV) { Assert1(GV.hasExternalLinkage() || GV.hasDLLImportLinkage() || GV.hasExternalWeakLinkage(), "invalid linkage type for global declaration", &GV); - Assert1(!GV.hasUnnamedAddr(), "only definitions can have unnamed_addr", - &GV); } visitGlobalValue(GV); @@ -727,7 +725,6 @@ void Verifier::visitFunction(Function &F) { Assert1(F.hasExternalLinkage() || F.hasDLLImportLinkage() || F.hasExternalWeakLinkage(), "invalid linkage type for function declaration", &F); - Assert1(!F.hasUnnamedAddr(), "only definitions can have unnamed_addr", &F); } else { // Verify that this function (which has a body) is not named "llvm.*". It // is not legal to define intrinsics. |