[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 27 15:25:08 PST 2004
Changes in directory llvm-gcc/gcc:
llvm-expand.c updated: 1.65 -> 1.66
---
Log message:
Fix PR397: http://llvm.cs.uiuc.edu/PR397 , and test Regression/C++Frontend/2004-11-27-InlineAsmFunctionRedefinition.cpp
This is horrible, just horrible.
---
Diffs of the changes: (+1 -1)
Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.65 llvm-gcc/gcc/llvm-expand.c:1.66
--- llvm-gcc/gcc/llvm-expand.c:1.65 Sat Nov 27 16:44:30 2004
+++ llvm-gcc/gcc/llvm-expand.c Sat Nov 27 17:24:55 2004
@@ -6786,7 +6786,7 @@
* int main() { foo(); }
* static void foo() {} // changes foo to be void()
*/
- {
+ if (Fn->ForwardedFunction == 0) {
llvm_function *I = llvm_ilist_begin(TheProgram.Functions);
for (; I; I = llvm_ilist_next(I))
if (I->ForwardedFunction == 0 && !strcmp(G2V(I)->Name, G2V(Fn)->Name) &&
More information about the llvm-commits
mailing list