diff options
author | Andrew Trick <atrick@apple.com> | 2013-11-19 05:05:43 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-11-19 05:05:43 +0000 |
commit | 1f54e805f25c7381e2dbf0d2065f4c1af8ba095a (patch) | |
tree | 7fbdbfd893af94e733245d3629060998a7e4a4c9 /llvm/lib/CodeGen | |
parent | 5da637fd7b0deca65c1280502f14f57f8a7aa56d (diff) | |
download | bcm5719-llvm-1f54e805f25c7381e2dbf0d2065f4c1af8ba095a.tar.gz bcm5719-llvm-1f54e805f25c7381e2dbf0d2065f4c1af8ba095a.zip |
Fix patchpoint comments.
llvm-svn: 195103
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp index 253aad59f15..3a8fb859110 100644 --- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp @@ -21,6 +21,7 @@ #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/MachineRegisterInfo.h" +#include "llvm/CodeGen/StackMaps.h" #include "llvm/IR/DataLayout.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" @@ -732,7 +733,7 @@ EmitMachineNode(SDNode *Node, bool IsClone, bool IsCloned, // Handle PATCHPOINT specially and then use the generic code. if (Opc == TargetOpcode::PATCHPOINT) { - unsigned CC = Node->getConstantOperandVal(4); + unsigned CC = Node->getConstantOperandVal(PatchPointOpers::CCPos); NumDefs = NumResults; ScratchRegs = TLI->getScratchRegisters((CallingConv::ID) CC); } |