Fix a typo that broke SimplifyLibCalls/SPrintF.ll (pr1315)
llvm-svn: 35768
This commit is contained in:
parent
3638a2375f
commit
aa8ad10c2f
|
|
@ -1342,7 +1342,7 @@ public:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Get the second character and switch on its value
|
// Get the second character and switch on its value
|
||||||
switch (FormatStr[2]) {
|
switch (FormatStr[1]) {
|
||||||
case 'c': {
|
case 'c': {
|
||||||
// sprintf(dest,"%c",chr) -> store chr, dest
|
// sprintf(dest,"%c",chr) -> store chr, dest
|
||||||
Value *V = CastInst::createTruncOrBitCast(CI->getOperand(3),
|
Value *V = CastInst::createTruncOrBitCast(CI->getOperand(3),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue