summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-09-15 01:39:27 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-09-15 01:39:27 +0000
commite9621040e565e15c7d7d29df604b29099ac0a60c (patch)
tree3cfdceb6cc10351ca359de94bce207d4ab10838d
parentf091e129dbf75f5e52bf5ff000d4fd049cc9c06c (diff)
downloadbcm5719-llvm-e9621040e565e15c7d7d29df604b29099ac0a60c.tar.gz
bcm5719-llvm-e9621040e565e15c7d7d29df604b29099ac0a60c.zip
ItaniumCXXABI.cpp: Fix a warning. [-Wunused-variable]
llvm-svn: 247655
-rw-r--r--clang/lib/CodeGen/ItaniumCXXABI.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/ItaniumCXXABI.cpp b/clang/lib/CodeGen/ItaniumCXXABI.cpp
index 31be2f98653..85c7fd16030 100644
--- a/clang/lib/CodeGen/ItaniumCXXABI.cpp
+++ b/clang/lib/CodeGen/ItaniumCXXABI.cpp
@@ -3392,14 +3392,13 @@ static void emitConstructorDestructorAlias(CodeGenModule &CGM,
return;
auto *Aliasee = cast<llvm::GlobalValue>(CGM.GetAddrOfGlobal(TargetDecl));
- llvm::PointerType *AliasType = Aliasee->getType();
// Create the alias with no name.
auto *Alias = llvm::GlobalAlias::create(Linkage, "", Aliasee);
// Switch any previous uses to the alias.
if (Entry) {
- assert(Entry->getType() == AliasType &&
+ assert(Entry->getType() == Aliasee->getType() &&
"declaration exists with different type");
Alias->takeName(Entry);
Entry->replaceAllUsesWith(Alias);
OpenPOWER on IntegriCloud