forked from OSchip/llvm-project
Make getBaseObject static.
Thanks to David Majnemer for noticing. llvm-svn: 211208
This commit is contained in:
parent
8af5cb2c28
commit
ccf10727b0
|
@ -59,7 +59,7 @@ void GlobalValue::copyAttributesFrom(const GlobalValue *Src) {
|
|||
setDLLStorageClass(Src->getDLLStorageClass());
|
||||
}
|
||||
|
||||
const GlobalObject *getBaseObject(const Constant &C) {
|
||||
static const GlobalObject *getBaseObject(const Constant &C) {
|
||||
// FIXME: We should probably return a base + offset pair for non-zero GEPs.
|
||||
return dyn_cast<GlobalObject>(C.stripPointerCasts());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue