https://llvm.org/bugs/show_bug.cgi?id=23593

            Bug ID: 23593
           Summary: MSVC Compiling Broken InlineFunction.cpp Revision
                    237624
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Transformation Utilities
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

The following line has been changed to :
// Insert the llvm.stacksave.
    CallInst *SavedPtr =  IRBuilder<>(FirstNewBlock, FirstNewBlock->begin())
        .CreateCall(StackSave, {}, "savedstack");

Generating a MSVC compiler error.

The work around is :
// Insert the llvm.stacksave.
    ArrayRef<llvm::Value*> args;
    CallInst *SavedPtr =  IRBuilder<>(FirstNewBlock, FirstNewBlock->begin())
        .CreateCall(StackSave, args, "savedstack");

The bug is not of the LLVM, it's a MS CL bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to