summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-09-05 22:26:57 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-09-05 22:26:57 +0000
commitad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1 (patch)
treebdd8f9546bc9b5b2df114c513474027b0bb5c7d5 /llvm/lib/ExecutionEngine
parentcbd2a1983f77fc655d7dd620e6287c82776c5698 (diff)
downloadbcm5719-llvm-ad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1.tar.gz
bcm5719-llvm-ad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1.zip
Stop casting away const qualifier needlessly.
llvm-svn: 163258
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 4afc900f640..ba0aeca58da 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -833,7 +833,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
static void StoreIntToMemory(const APInt &IntVal, uint8_t *Dst,
unsigned StoreBytes) {
assert((IntVal.getBitWidth()+7)/8 >= StoreBytes && "Integer too small!");
- uint8_t *Src = (uint8_t *)IntVal.getRawData();
+ const uint8_t *Src = (const uint8_t *)IntVal.getRawData();
if (sys::isLittleEndianHost()) {
// Little-endian host - the source is ordered from LSB to MSB. Order the
OpenPOWER on IntegriCloud