We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 980ae19 commit 39c7802Copy full SHA for 39c7802
llvm/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -186,10 +186,10 @@ bool PPCSubtarget::enableSubRegLiveness() const {
186
}
187
188
bool PPCSubtarget::isGVIndirectSymbol(const GlobalValue *GV) const {
189
- if (isAIXABI() && isa<GlobalVariable>(GV)) {
190
- // On AIX the only symbols that aren't indirect are toc-data.
191
- if (cast<GlobalVariable>(GV)->hasAttribute("toc-data"))
192
- return false;
+ if (isAIXABI()) {
+ if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV))
+ // On AIX the only symbols that aren't indirect are toc-data.
+ return !GVar->hasAttribute("toc-data");
193
194
return true;
195
0 commit comments