[cfe-commits] r90095 - /cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Daniel Dunbar daniel at zuster.org
Sun Nov 29 13:11:48 PST 2009


Author: ddunbar
Date: Sun Nov 29 15:11:47 2009
New Revision: 90095

URL: http://llvm.org/viewvc/llvm-project?rev=90095&view=rev
Log:
Explicitly use setVolatile instead of extra IRBuilder argument.

Modified:
    cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=90095&r1=90094&r2=90095&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Sun Nov 29 15:11:47 2009
@@ -530,7 +530,9 @@
     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);
   }
 





More information about the cfe-commits mailing list