diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-04-08 01:31:02 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-04-08 01:31:02 +0000 |
commit | f60a0d74522ea4abd1cafcec4dd19dfeab258f8f (patch) | |
tree | 0a8a9ec7d6950cdd929e1060aabdc6973485b47a /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 6a6747d9dd8e89bb6199acf42f10359ed4584561 (diff) | |
download | llvm-f60a0d74522ea4abd1cafcec4dd19dfeab258f8f.zip llvm-f60a0d74522ea4abd1cafcec4dd19dfeab258f8f.tar.gz llvm-f60a0d74522ea4abd1cafcec4dd19dfeab258f8f.tar.bz2 |
Adapt to LLVM API change
Replace mayBeOverridden with isInterposable
llvm-svn: 265767
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index db1ed3c..efafa5d 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -332,7 +332,7 @@ void CodeGenModule::checkAliases() { // to its aliasee's aliasee. We also warn, since the user is probably // expecting the link to be weak. if (auto GA = dyn_cast<llvm::GlobalAlias>(AliaseeGV)) { - if (GA->mayBeOverridden()) { + if (GA->isInterposable()) { Diags.Report(AA->getLocation(), diag::warn_alias_to_weak_alias) << GV->getName() << GA->getName(); Aliasee = llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast( |