summaryrefslogtreecommitdiff
path: root/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-06 22:44:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-06 22:44:30 +0000
commit26668d093e4668a28f377c521c280454dc1b35ab (patch)
tree9cdb92f6c54e4648a1e0c8d6682e7791c7d2b5c4 /lib/IR/Verifier.cpp
parent8abb75bc6173c82a3153fd358735219b3355b539 (diff)
downloadllvm-26668d093e4668a28f377c521c280454dc1b35ab.tar.gz
llvm-26668d093e4668a28f377c521c280454dc1b35ab.tar.bz2
llvm-26668d093e4668a28f377c521c280454dc1b35ab.tar.xz
Special case aliases in GlobalValue::getSection.
This is similar to the getAlignment patch, but is done just for completeness. It looks like we never call getSection on an alias. All the tests still pass if the if is replaced with an assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Verifier.cpp')
-rw-r--r--lib/IR/Verifier.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp
index bc378aed16..083f7b5255 100644
--- a/lib/IR/Verifier.cpp
+++ b/lib/IR/Verifier.cpp
@@ -476,7 +476,6 @@ void Verifier::visitGlobalAlias(const GlobalAlias &GA) {
Assert1(GA.getType() == GA.getAliasee()->getType(),
"Alias and aliasee types should match!", &GA);
Assert1(!GA.hasUnnamedAddr(), "Alias cannot have unnamed_addr!", &GA);
- Assert1(!GA.hasSection(), "Alias cannot have a section!", &GA);
const Constant *Aliasee = GA.getAliasee();
const GlobalValue *GV = dyn_cast<GlobalValue>(Aliasee);