diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-06 16:48:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-06 16:48:58 +0000 |
commit | 52dc5d828fd75c7ec3ae82c5d5737e34a2a1b938 (patch) | |
tree | 8f3a7070c1466a4a75d0cbd5d779329ebfc64646 /llvm/lib/IR/Verifier.cpp | |
parent | a9f3a5cb376d4cf9d1148ddef8805646ead90066 (diff) | |
download | bcm5719-llvm-52dc5d828fd75c7ec3ae82c5d5737e34a2a1b938.tar.gz bcm5719-llvm-52dc5d828fd75c7ec3ae82c5d5737e34a2a1b938.zip |
Special case aliases in GlobalValue::getAlignment.
An alias has the address of what it points to, so it also has the same
alignment.
This allows a few optimizations to see past aliases for free.
llvm-svn: 208103
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 0bc5c509ebe..bc378aed16b 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -477,7 +477,6 @@ void Verifier::visitGlobalAlias(const GlobalAlias &GA) { "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); - Assert1(!GA.getAlignment(), "Alias connot have an alignment", &GA); const Constant *Aliasee = GA.getAliasee(); const GlobalValue *GV = dyn_cast<GlobalValue>(Aliasee); |