[llvm-commits] CVS: gcc-3.4/gcc/llvm-expand.c
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 20 11:18:01 PST 2004
Changes in directory gcc-3.4/gcc:
llvm-expand.c updated: 1.12 -> 1.13
---
Log message:
Fix PR244: llvm-gcc miscompiles when a function is re-declared as static
---
Diffs of the changes: (+1 -1)
Index: gcc-3.4/gcc/llvm-expand.c
diff -u gcc-3.4/gcc/llvm-expand.c:1.12 gcc-3.4/gcc/llvm-expand.c:1.13
--- gcc-3.4/gcc/llvm-expand.c:1.12 Fri Feb 13 22:26:31 2004
+++ gcc-3.4/gcc/llvm-expand.c Fri Feb 20 11:17:28 2004
@@ -6399,7 +6399,7 @@
PFnTy = llvm_type_get_pointer(FnTy);
if (!DECL_LLVM_SET_P(subr) || DECL_LLVM(subr)->Ty != PFnTy) {
- const char *ExternalName = IDENTIFIER_POINTER(DECL_ASSEMBLER_NAME(subr));
+ const char *ExternalName = IDENTIFIER_POINTER(DECL_NAME(subr));
llvm_value *GlobalVal = llvm_get_global_alias(ExternalName);
if (!GlobalVal || GlobalVal->Ty != PFnTy) {
const char *PName = (*lang_hooks.decl_printable_name)(subr, 2);
More information about the llvm-commits
mailing list