Skip to content

MSVC Compiling Broken InlineFunction.cpp Revision 237624 #23967

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 23593
Resolution WORKSFORME
Resolved on Jun 15, 2015 14:15
Version trunk
OS Windows NT
Reporter LLVM Bugzilla Contributor
CC @zmodem,@rnk

Extended Description

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.
ArrayRefllvm::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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaworksformeResolved as "works for me"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions