diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-28 17:03:54 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-09-28 17:03:54 +0000 |
commit | 8076fe87b75d64b8d853ab9a6db592957ac6cefb (patch) | |
tree | 94f8da9bbe2bc681925105e19ea1f6f96cdaacc5 /llvm/lib/CodeGen/MachineInstrAnnot.cpp | |
parent | 8fef3b80332e448a0f431ab755a6a51d39f8bf37 (diff) | |
download | bcm5719-llvm-8076fe87b75d64b8d853ab9a6db592957ac6cefb.tar.gz bcm5719-llvm-8076fe87b75d64b8d853ab9a6db592957ac6cefb.zip |
Fixed method getReturnValue(): it should return NULL if the
callee does not return a value.
llvm-svn: 3968
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstrAnnot.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstrAnnot.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstrAnnot.cpp b/llvm/lib/CodeGen/MachineInstrAnnot.cpp index 960c49283e5..ef064450ed0 100644 --- a/llvm/lib/CodeGen/MachineInstrAnnot.cpp +++ b/llvm/lib/CodeGen/MachineInstrAnnot.cpp @@ -30,3 +30,10 @@ CallArgsDescriptor::CallArgsDescriptor(const CallInst* _callInstr, for (unsigned int i=1; i < numArgs; ++i) argInfoVec.push_back(CallArgInfo(callInstr->getOperand(i))); } + + +const CallInst* +CallArgsDescriptor::getReturnValue() const +{ + return (callInstr->getType() == Type::VoidTy? NULL : callInstr); +} |