llvm.org GIT mirror llvm / 79e3fcd
Fix build break when the host C compiler is C89. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287075 91177308-0d34-0410-b5e6-96231b3b80d8 Richard Smith 4 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2323 LLVMValueRef F = LLVMGetFirstFunction(M);
2424 while (F) {
2525 // Read attributes
26 for (int Idx = LLVMAttributeFunctionIndex, ParamCount = LLVMCountParams(F);
26 int Idx, ParamCount;
27 for (Idx = LLVMAttributeFunctionIndex, ParamCount = LLVMCountParams(F);
2728 Idx <= ParamCount; ++Idx) {
2829 int AttrCount = LLVMGetAttributeCountAtIndex(F, Idx);
2930 LLVMAttributeRef *Attrs =
5253 for (I = LLVMGetFirstInstruction(BB); I; I = LLVMGetNextInstruction(I)) {
5354 if (LLVMIsACallInst(I)) {
5455 // Read attributes
55 for (int Idx = LLVMAttributeFunctionIndex,
56 ParamCount = LLVMCountParams(F);
56 int Idx, ParamCount;
57 for (Idx = LLVMAttributeFunctionIndex,
58 ParamCount = LLVMCountParams(F);
5759 Idx <= ParamCount; ++Idx) {
5860 int AttrCount = LLVMGetCallSiteAttributeCount(I, Idx);
5961 LLVMAttributeRef *Attrs = (LLVMAttributeRef *)malloc(