summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-05-14 12:21:21 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-05-14 12:21:21 +0000
commit324bf7a159fba49d0f2334eb69a3ad4812757f89 (patch)
tree3a0327570070ab80817b782ba956c44755563556 /clang/lib/CodeGen/CGBuiltin.cpp
parentcf0a230477a2b184764dd8d10e8cd028fdb4eeca (diff)
downloadbcm5719-llvm-324bf7a159fba49d0f2334eb69a3ad4812757f89.tar.gz
bcm5719-llvm-324bf7a159fba49d0f2334eb69a3ad4812757f89.zip
Take a stab at trying to unbreak the makefile build.
There is no clangRewrite.a. llvm-svn: 181781
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index d18767897f3..cacdf3438d8 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -160,7 +160,9 @@ static Value *EmitFAbs(CodeGenFunction &CGF, Value *V, QualType ValTy) {
false);
llvm::Value *Fn = CGF.CGM.CreateRuntimeFunction(FT, FnName);
- return CGF.EmitNounwindRuntimeCall(Fn, V, "abs");
+ llvm::CallInst *Call = CGF.EmitNounwindRuntimeCall(Fn, V, "abs");
+ Call->setDoesNotAccessMemory();
+ return Call;
}
static RValue emitLibraryCall(CodeGenFunction &CGF, const FunctionDecl *Fn,
OpenPOWER on IntegriCloud