зеркало из https://github.com/microsoft/clang-1.git
Reapply Daniel's patch to match up with llvm 63765.
Untested, Daniel or Nate please review. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63814 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
3170c93d26
Коммит
a6f80ef997
|
@ -333,12 +333,9 @@ RValue CodeGenFunction::EmitBuiltinExpr(unsigned BuiltinID, const CallExpr *E) {
|
|||
E->arg_end());
|
||||
|
||||
// See if we have a target specific intrinsic.
|
||||
Intrinsic::ID IntrinsicID;
|
||||
const char *TargetPrefix = Target.getTargetPrefix();
|
||||
const char *BuiltinName = getContext().BuiltinInfo.GetName(BuiltinID);
|
||||
#define GET_LLVM_INTRINSIC_FOR_GCC_BUILTIN
|
||||
#include "llvm/Intrinsics.gen"
|
||||
#undef GET_LLVM_INTRINSIC_FOR_GCC_BUILTIN
|
||||
const char *Name = getContext().BuiltinInfo.GetName(BuiltinID);
|
||||
Intrinsic::ID IntrinsicID =
|
||||
Intrinsic::getIntrinsicForGCCBuiltin(Target.getTargetPrefix(), Name);
|
||||
|
||||
if (IntrinsicID != Intrinsic::not_intrinsic) {
|
||||
SmallVector<Value*, 16> Args;
|
||||
|
|
Загрузка…
Ссылка в новой задаче