[llvm-commits] CVS: llvm/lib/CodeGen/MachineDebugInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 27 09:31:42 PST 2006
Changes in directory llvm/lib/CodeGen:
MachineDebugInfo.cpp updated: 1.8 -> 1.9
---
Log message:
Fix build error that is apparently only a warning with some compilers.
---
Diffs of the changes: (+1 -1)
MachineDebugInfo.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/MachineDebugInfo.cpp
diff -u llvm/lib/CodeGen/MachineDebugInfo.cpp:1.8 llvm/lib/CodeGen/MachineDebugInfo.cpp:1.9
--- llvm/lib/CodeGen/MachineDebugInfo.cpp:1.8 Fri Jan 27 09:46:54 2006
+++ llvm/lib/CodeGen/MachineDebugInfo.cpp Fri Jan 27 11:31:30 2006
@@ -62,7 +62,7 @@
/// 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());
More information about the llvm-commits
mailing list