summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-27 17:31:30 +0000
committerChris Lattner <sabre@nondot.org>2006-01-27 17:31:30 +0000
commitecd7e61a1fe650f9faeab09526801af5faca5f68 (patch)
tree1e6fd2533a6376f9810c2213f23bd4f770b08222 /llvm
parent2b6efa9d41128ed8da4056953c0f71ac3ac868ce (diff)
downloadbcm5719-llvm-ecd7e61a1fe650f9faeab09526801af5faca5f68.tar.gz
bcm5719-llvm-ecd7e61a1fe650f9faeab09526801af5faca5f68.zip
Fix build error that is apparently only a warning with some compilers.
llvm-svn: 25686
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/MachineDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineDebugInfo.cpp b/llvm/lib/CodeGen/MachineDebugInfo.cpp
index 07faba1dfbf..ab42886cb48 100644
--- a/llvm/lib/CodeGen/MachineDebugInfo.cpp
+++ b/llvm/lib/CodeGen/MachineDebugInfo.cpp
@@ -62,7 +62,7 @@ getGlobalVariablesUsing(Module &M, const std::string &RootName) {
/// getStringValue - Turn an LLVM constant pointer that eventually points to a
/// global into a string value. Return an empty string if we can't do it.
///
-const static std::string getStringValue(Value *V, unsigned Offset = 0) {
+static const std::string getStringValue(Value *V, unsigned Offset = 0) {
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) {
if (GV->hasInitializer() && isa<ConstantArray>(GV->getInitializer())) {
ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
OpenPOWER on IntegriCloud