summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-29 21:11:47 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-29 21:11:47 +0000
commit1dd0164bbe4578dc0f876280eac91d8d9e6d6966 (patch)
treebe7ac53c7161f5ce874448f40228c0fab50ff596
parentdacbe6bdcdabc36da7d9591ac58b475b4d094ac8 (diff)
downloadbcm5719-llvm-1dd0164bbe4578dc0f876280eac91d8d9e6d6966.tar.gz
bcm5719-llvm-1dd0164bbe4578dc0f876280eac91d8d9e6d6966.zip
Explicitly use setVolatile instead of extra IRBuilder argument.
llvm-svn: 90095
-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 399b8733e72..3e22e36237a 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -530,7 +530,9 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD,
Value *Ptr = EmitScalarExpr(E->getArg(0));
const llvm::Type *ElTy =
cast<llvm::PointerType>(Ptr->getType())->getElementType();
- Builder.CreateStore(llvm::Constant::getNullValue(ElTy), Ptr, true);
+ llvm::StoreInst *Store =
+ Builder.CreateStore(llvm::Constant::getNullValue(ElTy), Ptr);
+ Store->setVolatile(true);
return RValue::get(0);
}
OpenPOWER on IntegriCloud