Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit fff95d5

Browse files
committed
Make getBaseObject static.
Thanks to David Majnemer for noticing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211208 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d681e31 commit fff95d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IR/Globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void GlobalValue::copyAttributesFrom(const GlobalValue *Src) {
5959
setDLLStorageClass(Src->getDLLStorageClass());
6060
}
6161

62-
const GlobalObject *getBaseObject(const Constant &C) {
62+
static const GlobalObject *getBaseObject(const Constant &C) {
6363
// FIXME: We should probably return a base + offset pair for non-zero GEPs.
6464
return dyn_cast<GlobalObject>(C.stripPointerCasts());
6565
}

0 commit comments

Comments
 (0)